/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="referenceType">A qualifying attribute for the ResourceLocation payload. If ReferenceType is "URI", the payload contains a web address where the resource can be found.</param> ///<param name="value">Gets or sets the content value of the &lt;ResourceLocation&gt; element</param> /// public ResourceLocation(ReferenceType referenceType, string value) : base(InstrDTD.RESOURCELOCATION) { this.SetReferenceType(referenceType); this.Value = value; }
/// <summary> /// Sets the value of the <c>ReferenceType</c> attribute. /// </summary> /// <param name="val">A ReferenceType object</param> /// <remarks> /// <para>The SIF specification defines the meaning of this attribute as: "A qualifying attribute for the ResourceLocation payload. If ReferenceType is "URI", the payload contains a web address where the resource can be found."</para> /// <para>Version: 2.6</para> /// <para>Since: 1.5r1</para> /// </remarks> public void SetReferenceType(ReferenceType val) { SetField(InstrDTD.RESOURCELOCATION_REFERENCETYPE, val); }
/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="referenceType">A qualifying attribute for the ResourceLocation payload. If ReferenceType is "URI", the payload contains a web address where the resource can be found.</param> ///<param name="value">Gets or sets the content value of the &lt;ResourceLocation&gt; element</param> /// public ResourceLocation( ReferenceType referenceType, string value ) : base(InstrDTD.RESOURCELOCATION) { this.SetReferenceType( referenceType ); this.Value = value; }
/// <summary> /// Sets the value of the <c>ReferenceType</c> attribute. /// </summary> /// <param name="val">A ReferenceType object</param> /// <remarks> /// <para>The SIF specification defines the meaning of this attribute as: "A qualifying attribute for the ResourceLocation payload. If ReferenceType is "URI", the payload contains a web address where the resource can be found."</para> /// <para>Version: 2.5</para> /// <para>Since: 1.5r1</para> /// </remarks> public void SetReferenceType( ReferenceType val ) { SetField( InstrDTD.RESOURCELOCATION_REFERENCETYPE, val ); }
///<summary>Sets the value of the <c><Location></c> element.</summary> /// <param name="ReferenceType">A qualifying attribute for the ResourceLocation payload. If ReferenceType is "URI", the payload contains a web address where the resource can be found.</param> /// <param name="Value">Gets or sets the content value of the &lt;ResourceLocation&gt; element</param> ///<remarks> /// <para>This form of <c>setLocation</c> is provided as a convenience method /// that is functionally equivalent to the <c>Location</c></para> /// <para>Version: 2.6</para> /// <para>Since: 1.5r1</para> /// </remarks> public void SetLocation(ReferenceType ReferenceType, string Value) { RemoveChild(InstrDTD.LEARNINGRESOURCE_LOCATION); AddChild(InstrDTD.LEARNINGRESOURCE_LOCATION, new ResourceLocation(ReferenceType, Value)); }
///<summary>Sets the value of the <c><Location></c> element.</summary> /// <param name="ReferenceType">A qualifying attribute for the ResourceLocation payload. If ReferenceType is "URI", the payload contains a web address where the resource can be found.</param> /// <param name="Value">Gets or sets the content value of the &lt;ResourceLocation&gt; element</param> ///<remarks> /// <para>This form of <c>setLocation</c> is provided as a convenience method /// that is functionally equivalent to the <c>Location</c></para> /// <para>Version: 2.5</para> /// <para>Since: 1.5r1</para> /// </remarks> public void SetLocation( ReferenceType ReferenceType, string Value ) { RemoveChild( InstrDTD.LEARNINGRESOURCE_LOCATION); AddChild( InstrDTD.LEARNINGRESOURCE_LOCATION, new ResourceLocation( ReferenceType, Value ) ); }