Exemplo n.º 1
0
 /// <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 &amp;lt;Duration&amp;gt; element</param>
 ///
 public Duration( TimeUnitEnum units, int? value )
     : base(Sif3assessmentDTD.DURATION)
 {
     this.SetUnits( units );
     this.Value = value;
 }
Exemplo n.º 2
0
 ///<summary>Sets the value of the <c>&lt;Duration&gt;</c> element.</summary>
 /// <param name="Units">An Units</param>
 /// <param name="Value">Gets or sets the content value of the &amp;lt;Duration&amp;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 ) );
 }
Exemplo n.º 3
0
 /// <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 );
 }