/// <summary> /// Sets the value of the <c><Injury></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 ); }
/// <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 ); }
///<summary>Adds the value of the <c><Offender></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)); }
/// <summary> /// Sets the value of the <c><Injury></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); }
/// <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); }
/// <summary> /// Sets the value of the <c><Injury></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); }
/// <summary> /// Sets the value of the <c><Injury></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 ); }