コード例 #1
0
 ///<summary>Sets the value of the <c>&lt;IncidentReporter&gt;</c> element.</summary>
 /// <param name="Type">A Type</param>
 ///<remarks>
 /// <para>This form of <c>setIncidentReporter</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>IncidentReporter</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.0</para>
 /// </remarks>
 public void SetIncidentReporter(ReporterDescriptionType Type)
 {
     RemoveChild(StudentDTD.DISCIPLINEINCIDENT_INCIDENTREPORTER);
     AddChild(StudentDTD.DISCIPLINEINCIDENT_INCIDENTREPORTER, new IncidentReporter(Type));
 }
コード例 #2
0
 /// <summary>
 /// Sets the value of the <c>Type</c> attribute.
 /// </summary>
 /// <param name="val">A ReporterDescriptionType object</param>
 /// <remarks>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.0</para>
 /// </remarks>
 public void SetType( ReporterDescriptionType val )
 {
     SetField( StudentDTD.INCIDENTREPORTER_TYPE, val );
 }
コード例 #3
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="type">A Type</param>
 ///
 public IncidentReporter( ReporterDescriptionType type )
     : base(StudentDTD.INCIDENTREPORTER)
 {
     this.SetType( type );
 }
コード例 #4
0
ファイル: Offender.cs プロジェクト: rafidzal/OpenADK-csharp
 /// <summary>
 /// Sets the value of the <c>Type</c> attribute.
 /// </summary>
 /// <param name="val">A ReporterDescriptionType object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this attribute as: "Identifies the type of offender involved in the incident."</para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.0</para>
 /// </remarks>
 public void SetType( ReporterDescriptionType val )
 {
     SetField( StudentDTD.OFFENDER_TYPE, val );
 }
コード例 #5
0
ファイル: Offender.cs プロジェクト: rafidzal/OpenADK-csharp
 /// <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 );
 }
コード例 #6
0
 ///<summary>Sets the value of the <c>&lt;IncidentReporter&gt;</c> element.</summary>
 /// <param name="Type">A Type</param>
 ///<remarks>
 /// <para>This form of <c>setIncidentReporter</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>IncidentReporter</c></para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 2.0</para>
 /// </remarks>
 public void SetIncidentReporter( ReporterDescriptionType Type )
 {
     RemoveChild( StudentDTD.DISCIPLINEINCIDENT_INCIDENTREPORTER);
     AddChild( StudentDTD.DISCIPLINEINCIDENT_INCIDENTREPORTER, new IncidentReporter( Type ) );
 }
コード例 #7
0
 ///<summary>Adds the value of the <c>&lt;Victim&gt;</c> element.</summary>
 /// <param name="Type">Identifies the type of individual victimized in the incident.</param>
 ///<remarks>
 /// <para>This form of <c>setVictim</c> is provided as a convenience method
 /// that is functionally equivalent to the method <c>AddVictim</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.0</para>
 /// </remarks>
 public void AddVictim(ReporterDescriptionType Type)
 {
     AddChild(StudentDTD.VICTIMLIST_VICTIM, new Victim(Type));
 }
コード例 #8
0
ファイル: Victim.cs プロジェクト: rubitek/OpenADK-csharp
 /// <summary>
 /// Sets the value of the <c>Type</c> attribute.
 /// </summary>
 /// <param name="val">A ReporterDescriptionType object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this attribute as: "Identifies the type of individual victimized in the incident."</para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.0</para>
 /// </remarks>
 public void SetType(ReporterDescriptionType val)
 {
     SetField(StudentDTD.VICTIM_TYPE, val);
 }
コード例 #9
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));
 }
コード例 #10
0
ファイル: Offender.cs プロジェクト: rubitek/OpenADK-csharp
 /// <summary>
 /// Sets the value of the <c>Type</c> attribute.
 /// </summary>
 /// <param name="val">A ReporterDescriptionType object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this attribute as: "Identifies the type of offender involved in the incident."</para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.0</para>
 /// </remarks>
 public void SetType(ReporterDescriptionType val)
 {
     SetField(StudentDTD.OFFENDER_TYPE, val);
 }
コード例 #11
0
ファイル: Victim.cs プロジェクト: rubitek/OpenADK-csharp
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="type">Identifies the type of individual victimized in the incident.</param>
 ///
 public Victim(ReporterDescriptionType type) : base(StudentDTD.VICTIM)
 {
     this.SetType(type);
 }
コード例 #12
0
ファイル: Offender.cs プロジェクト: rubitek/OpenADK-csharp
 /// <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);
 }
コード例 #13
0
ファイル: Victim.cs プロジェクト: rafidzal/OpenADK-csharp
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="type">Identifies the type of individual victimized in the incident.</param>
 ///
 public Victim( ReporterDescriptionType type )
     : base(StudentDTD.VICTIM)
 {
     this.SetType( type );
 }
コード例 #14
0
ファイル: Victim.cs プロジェクト: rafidzal/OpenADK-csharp
 /// <summary>
 /// Sets the value of the <c>Type</c> attribute.
 /// </summary>
 /// <param name="val">A ReporterDescriptionType object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this attribute as: "Identifies the type of individual victimized in the incident."</para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.0</para>
 /// </remarks>
 public void SetType( ReporterDescriptionType val )
 {
     SetField( StudentDTD.VICTIM_TYPE, val );
 }
コード例 #15
0
 /// <summary>
 /// Sets the value of the <c>Type</c> attribute.
 /// </summary>
 /// <param name="val">A ReporterDescriptionType object</param>
 /// <remarks>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.0</para>
 /// </remarks>
 public void SetType(ReporterDescriptionType val)
 {
     SetField(StudentDTD.INCIDENTREPORTER_TYPE, val);
 }
コード例 #16
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="type">A Type</param>
 ///
 public IncidentReporter(ReporterDescriptionType type) : base(StudentDTD.INCIDENTREPORTER)
 {
     this.SetType(type);
 }