Example #1
0
 /// <summary>
 /// Sets the value of the <c>&lt;Injury&gt;</c> element.
 /// </summary>
 /// <param name="val">A InjuryType object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this element as: "Identifies whether or not this specific offender was physically injured, and if so, identifies whether the injury was major or minor."</para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.0</para>
 /// </remarks>
 public void SetInjury( InjuryType val )
 {
     SetField( StudentDTD.OFFENDER_INJURY, val );
 }
Example #2
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="type">Identifies the type of offender involved in the incident.</param>
 ///<param name="injury">Identifies whether or not this specific offender was physically injured, and if so, identifies whether the injury was major or minor.</param>
 ///
 public Offender( ReporterDescriptionType type, InjuryType injury )
     : base(StudentDTD.OFFENDER)
 {
     this.SetType( type );
     this.SetInjury( injury );
 }
Example #3
0
 ///<summary>Adds the value of the <c>&lt;Offender&gt;</c> element.</summary>
 /// <param name="Type">Identifies the type of offender involved in the incident.</param>
 /// <param name="Injury">Identifies whether or not this specific offender was physically injured, and if so, identifies whether the injury was major or minor.</param>
 ///<remarks>
 /// <para>This form of <c>setOffender</c> is provided as a convenience method
 /// that is functionally equivalent to the method <c>AddOffender</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.0</para>
 /// </remarks>
 public void AddOffender(ReporterDescriptionType Type, InjuryType Injury)
 {
     AddChild(StudentDTD.OFFENDERLIST_OFFENDER, new Offender(Type, Injury));
 }
Example #4
0
 /// <summary>
 /// Sets the value of the <c>&lt;Injury&gt;</c> element.
 /// </summary>
 /// <param name="val">A InjuryType object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this element as: "Identifies whether or not this specific victim was physically injured, and if so, identify whether the injury was major or minor."</para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.0</para>
 /// </remarks>
 public void SetInjury(InjuryType val)
 {
     SetField(StudentDTD.VICTIM_INJURY, val);
 }
Example #5
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="type">Identifies the type of offender involved in the incident.</param>
 ///<param name="injury">Identifies whether or not this specific offender was physically injured, and if so, identifies whether the injury was major or minor.</param>
 ///
 public Offender(ReporterDescriptionType type, InjuryType injury) : base(StudentDTD.OFFENDER)
 {
     this.SetType(type);
     this.SetInjury(injury);
 }
Example #6
0
 /// <summary>
 /// Sets the value of the <c>&lt;Injury&gt;</c> element.
 /// </summary>
 /// <param name="val">A InjuryType object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this element as: "Identifies whether or not this specific offender was physically injured, and if so, identifies whether the injury was major or minor."</para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.0</para>
 /// </remarks>
 public void SetInjury(InjuryType val)
 {
     SetField(StudentDTD.OFFENDER_INJURY, val);
 }
Example #7
0
 /// <summary>
 /// Sets the value of the <c>&lt;Injury&gt;</c> element.
 /// </summary>
 /// <param name="val">A InjuryType object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this element as: "Identifies whether or not this specific victim was physically injured, and if so, identify whether the injury was major or minor."</para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.0</para>
 /// </remarks>
 public void SetInjury( InjuryType val )
 {
     SetField( StudentDTD.VICTIM_INJURY, val );
 }