コード例 #1
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="refId">GUID for this particular object.</param>
 ///<param name="language">A Language</param>
 ///<param name="titles">Name of this type of curriculum object (e.g., "American Revolutionary War")</param>
 ///<param name="curriculumHierarchyLevel">Integer assigned to each hierarchical level within the CurriculumStructure tree. The top level is "1".</param>
 ///
 public CurriculumStructure( string refId, LanguageCode language, Title titles, CurriculumHierarchyLevel curriculumHierarchyLevel )
     : base(Adk.SifVersion, InstrDTD.CURRICULUMSTRUCTURE)
 {
     this.RefId = refId;
     this.SetLanguage( language );
     this.Titles =  new Titles( titles );
     this.CurriculumHierarchyLevel = curriculumHierarchyLevel;
 }
コード例 #2
0
 ///<summary>Sets the value of the <c>&lt;Titles&gt;</c> element.</summary>
 /// <param name="Title">Name of this type of curriculum object (e.g., "American Revolutionary War")</param>
 ///<remarks>
 /// <para>This form of <c>setTitles</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>Titles</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void SetTitles( Title Title )
 {
     RemoveChild( InstrDTD.CURRICULUMSTRUCTURE_TITLES);
     AddChild( InstrDTD.CURRICULUMSTRUCTURE_TITLES, new Titles( Title ) );
 }