Example #1
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="targetObject">At least one target for the learning standard linkage.</param>
 ///<param name="sifRefId">The RefId for the LearningResource or AssessmentItem</param>
 ///
 public TargetObjects( TargetObject targetObject, string sifRefId )
     : base(InstrDTD.TARGETOBJECTS)
 {
     this.AddTargetObject( targetObject );
     this.SIF_RefId = sifRefId;
 }
 ///<summary>Sets the value of the <c>&lt;TargetObjects&gt;</c> element.</summary>
 /// <param name="TargetObject">At least one target for the learning standard linkage.</param>
 /// <param name="SifRefId">The RefId for the LearningResource or AssessmentItem</param>
 ///<remarks>
 /// <para>This form of <c>setTargetObjects</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>TargetObjects</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.6</para>
 /// </remarks>
 public void SetTargetObjects( TargetObject TargetObject, string SifRefId )
 {
     RemoveChild( InstrDTD.LEARNINGSTANDARDASSOCIATION_TARGETOBJECTS);
     AddChild( InstrDTD.LEARNINGSTANDARDASSOCIATION_TARGETOBJECTS, new TargetObjects( TargetObject, SifRefId ) );
 }
Example #3
0
 /// <summary>
 /// Sets all TargetObject object instances. All existing 
 /// <c>TargetObject</c> instances 
 /// are removed and replaced with this list. Calling this method with the 
 /// parameter value set to null removes all <c>TargetObjects</c>.
 /// </summary>
 /// <remarks>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.6</para>
 /// </remarks>
 public void SetTargetObjects( TargetObject[] items)
 {
     SetChildren( InstrDTD.TARGETOBJECTS_TARGETOBJECT, items );
 }
Example #4
0
 /// <summary>Adds a new <c>&lt;TargetObject&gt;</c> child element.</summary>
 /// <param name="val">A TargetObject object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this element as: "At least one target for the learning standard linkage."</para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.6</para>
 /// </remarks>
 public void AddTargetObject( TargetObject val )
 {
     AddChild( InstrDTD.TARGETOBJECTS_TARGETOBJECT, val );
 }
 ///<summary>Sets the value of the <c>&lt;TargetObjects&gt;</c> element.</summary>
 /// <param name="TargetObject">At least one target for the learning standard linkage.</param>
 /// <param name="SifRefId">The RefId for the LearningResource or AssessmentItem</param>
 ///<remarks>
 /// <para>This form of <c>setTargetObjects</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>TargetObjects</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.6</para>
 /// </remarks>
 public void SetTargetObjects(TargetObject TargetObject, string SifRefId)
 {
     RemoveChild(InstrDTD.LEARNINGSTANDARDASSOCIATION_TARGETOBJECTS);
     AddChild(InstrDTD.LEARNINGSTANDARDASSOCIATION_TARGETOBJECTS, new TargetObjects(TargetObject, SifRefId));
 }
Example #6
0
 /// <summary>Adds a new <c>&lt;TargetObject&gt;</c> child element.</summary>
 /// <param name="val">A TargetObject object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this element as: "At least one target for the learning standard linkage."</para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.6</para>
 /// </remarks>
 public void AddTargetObject(TargetObject val)
 {
     AddChild(InstrDTD.TARGETOBJECTS_TARGETOBJECT, val);
 }
Example #7
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="targetObject">At least one target for the learning standard linkage.</param>
 ///<param name="sifRefId">The RefId for the LearningResource or AssessmentItem</param>
 ///
 public TargetObjects(TargetObject targetObject, string sifRefId) : base(InstrDTD.TARGETOBJECTS)
 {
     this.AddTargetObject(targetObject);
     this.SIF_RefId = sifRefId;
 }