Пример #1
0
 /// <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 &amp;lt;ResourceLocation&amp;gt; element</param>
 ///
 public ResourceLocation(ReferenceType referenceType, string value) : base(InstrDTD.RESOURCELOCATION)
 {
     this.SetReferenceType(referenceType);
     this.Value = value;
 }
Пример #2
0
 /// <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);
 }
Пример #3
0
 /// <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 &amp;lt;ResourceLocation&amp;gt; element</param>
 ///
 public ResourceLocation( ReferenceType referenceType, string value )
     : base(InstrDTD.RESOURCELOCATION)
 {
     this.SetReferenceType( referenceType );
     this.Value = value;
 }
Пример #4
0
 /// <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 );
 }
Пример #5
0
 ///<summary>Sets the value of the <c>&lt;Location&gt;</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 &amp;lt;ResourceLocation&amp;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));
 }
Пример #6
0
 ///<summary>Sets the value of the <c>&lt;Location&gt;</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 &amp;lt;ResourceLocation&amp;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 ) );
 }