/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="code">The reason the student was promoted. This element should only be populated if the value of PromotionStatus is "Promoted".</param> /// public Promotion( NCES0672PromotionType code ) : base(StudentDTD.PROMOTION) { this.SetCode( code ); }
///<summary>Sets the value of the <c><Promotion></c> element.</summary> /// <param name="Code">The reason the student was promoted. This element should only be populated if the value of PromotionStatus is "Promoted".</param> ///<remarks> /// <para>This form of <c>setPromotion</c> is provided as a convenience method /// that is functionally equivalent to the <c>Promotion</c></para> /// <para>Version: 2.5</para> /// <para>Since: 2.4</para> /// </remarks> public void SetPromotion( NCES0672PromotionType Code ) { RemoveChild( StudentDTD.PROMOTIONINFO_PROMOTION); AddChild( StudentDTD.PROMOTIONINFO_PROMOTION, new Promotion( Code ) ); }
/// <summary> /// Sets the value of the <c><Code></c> element. /// </summary> /// <param name="val">A NCES0672PromotionType object</param> /// <remarks> /// <para>The SIF specification defines the meaning of this element as: "The reason the student was promoted. This element should only be populated if the value of PromotionStatus is "Promoted"."</para> /// <para>Version: 2.6</para> /// <para>Since: 2.4</para> /// </remarks> public void SetCode( NCES0672PromotionType val ) { SetField( StudentDTD.PROMOTION_CODE, val ); }