/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="units">An Units</param> ///<param name="value">Gets or sets the content value of the &lt;Duration&gt; element</param> /// public Duration( TimeUnitEnum units, int? value ) : base(Sif3assessmentDTD.DURATION) { this.SetUnits( units ); this.Value = value; }
///<summary>Sets the value of the <c><Duration></c> element.</summary> /// <param name="Units">An Units</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: 2.6</para> /// </remarks> public void SetDuration( TimeUnitEnum Units, int? Value ) { RemoveChild( Sif3assessmentDTD.ACTIVITYTIME_DURATION); AddChild( Sif3assessmentDTD.ACTIVITYTIME_DURATION, new Duration( Units, Value ) ); }
/// <summary> /// Sets the value of the <c>Units</c> attribute. /// </summary> /// <param name="val">A TimeUnitEnum object</param> /// <remarks> /// <para>Version: 2.6</para> /// <para>Since: 2.6</para> /// </remarks> public void SetUnits( TimeUnitEnum val ) { SetField( Sif3assessmentDTD.DURATION_UNITS, val ); }