Ejemplo n.º 1
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="refId">A RefId</param>
 ///<param name="language">A Language</param>
 ///<param name="name">A Name</param>
 ///<param name="components">A Components</param>
 ///
 public LearningResource( string refId, string language, string name, Component components )
     : base(Adk.SifVersion, LearningDTD.LEARNINGRESOURCE)
 {
     this.RefId = refId;
     this.Language = language;
     this.Name = name;
     this.Components =  new Components( components );
 }
Ejemplo n.º 2
0
 ///<summary>Sets the value of the <c>&lt;Components&gt;</c> element.</summary>
 /// <param name="Component">A Component</param>
 ///<remarks>
 /// <para>This form of <c>setComponents</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>Components</c></para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 2.4</para>
 /// </remarks>
 public void SetComponents( Component Component )
 {
     RemoveChild( LearningDTD.LEARNINGRESOURCE_COMPONENTS);
     AddChild( LearningDTD.LEARNINGRESOURCE_COMPONENTS, new Components( Component ) );
 }