Exemplo n.º 1
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="yearCreated">A YearCreated</param>
 ///<param name="acStrandSubjectArea">An ACStrandSubjectArea</param>
 ///<param name="standardNumber">A StandardNumber</param>
 ///<param name="yearLevels">A YearLevels</param>
 ///<param name="organization">An Organization</param>
 ///
 public StandardIdentifier( Year yearCreated, ACStrandSubjectArea acStrandSubjectArea, string standardNumber, YearLevel yearLevels, string organization )
     : base(LearningDTD.STANDARDIDENTIFIER)
 {
     this.YearCreated = yearCreated;
     this.ACStrandSubjectArea = acStrandSubjectArea;
     this.StandardNumber = standardNumber;
     this.YearLevels =  new YearLevels( yearLevels );
     this.Organization = organization;
 }
 ///<summary>Sets the value of the <c>&lt;StandardIdentifier&gt;</c> element.</summary>
 /// <param name="YearCreated">A YearCreated</param>
 /// <param name="AcStrandSubjectArea">An ACStrandSubjectArea</param>
 /// <param name="StandardNumber">A StandardNumber</param>
 /// <param name="YearLevels">A YearLevels</param>
 /// <param name="Organization">An Organization</param>
 ///<remarks>
 /// <para>This form of <c>setStandardIdentifier</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>StandardIdentifier</c></para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 2.4</para>
 /// </remarks>
 public void SetStandardIdentifier( Year YearCreated, ACStrandSubjectArea AcStrandSubjectArea, string StandardNumber, YearLevel YearLevels, string Organization )
 {
     RemoveChild( LearningDTD.LEARNINGSTANDARDITEM_STANDARDIDENTIFIER);
     AddChild( LearningDTD.LEARNINGSTANDARDITEM_STANDARDIDENTIFIER, new StandardIdentifier( YearCreated, AcStrandSubjectArea, StandardNumber, YearLevels, Organization ) );
 }