/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="units">Unit of time of the Duration value.</param> ///<param name="value">Gets or sets the content value of the &lt;Duration&gt; element</param> /// public Duration( DurationUnits units, string value ) : base(CommonDTD.DURATION) { this.SetUnits( units ); this.Value = value; }
/// <summary> /// Sets the value of the <c>Units</c> attribute. /// </summary> /// <param name="val">A DurationUnits object</param> /// <remarks> /// <para>The SIF specification defines the meaning of this attribute as: "Unit of time of the Duration value."</para> /// <para>Version: 2.6</para> /// <para>Since: 1.5r1</para> /// </remarks> public void SetUnits( DurationUnits val ) { SetField( CommonDTD.DURATION_UNITS, val ); }
///<summary>Sets the value of the <c><Duration></c> element.</summary> /// <param name="Units">Unit of time of the Duration value.</param> /// <param name="Value">Gets or sets the content value of the &lt;Duration&gt; element</param> ///<remarks> /// <para>This form of <c>setDuration</c> is provided as a convenience method /// that is functionally equivalent to the <c>Duration</c></para> /// <para>Version: 2.6</para> /// <para>Since: 1.5r1</para> /// </remarks> public void SetDuration( DurationUnits Units, string Value ) { RemoveChild( InstrDTD.ACTIVITYTIME_DURATION); AddChild( InstrDTD.ACTIVITYTIME_DURATION, new Duration( Units, Value ) ); }
/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="units">Unit of time of the Duration value.</param> ///<param name="value">Gets or sets the content value of the &lt;Duration&gt; element</param> /// public Duration(DurationUnits units, string value) : base(CommonDTD.DURATION) { this.SetUnits(units); this.Value = value; }
/// <summary> /// Sets the value of the <c>Units</c> attribute. /// </summary> /// <param name="val">A DurationUnits object</param> /// <remarks> /// <para>The SIF specification defines the meaning of this attribute as: "Unit of time of the Duration value."</para> /// <para>Version: 2.6</para> /// <para>Since: 1.5r1</para> /// </remarks> public void SetUnits(DurationUnits val) { SetField(CommonDTD.DURATION_UNITS, val); }
///<summary>Sets the value of the <c><Duration></c> element.</summary> /// <param name="Units">Unit of time of the Duration value.</param> /// <param name="Value">Gets or sets the content value of the &lt;Duration&gt; element</param> ///<remarks> /// <para>This form of <c>setDuration</c> is provided as a convenience method /// that is functionally equivalent to the <c>Duration</c></para> /// <para>Version: 2.5</para> /// <para>Since: 2.4</para> /// </remarks> public void SetDuration( DurationUnits Units, string Value ) { RemoveChild( InstrDTD.CONTENTCATALOG_DURATION); AddChild( InstrDTD.CONTENTCATALOG_DURATION, new Duration( Units, Value ) ); }