Example #1
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="date">Date and time Incident took place (started to take place)</param>
 ///<param name="location">The Location the Incident (mostly) took place</param>
 ///<param name="confidentiality">May indicate the type of persons that this should be displayed to</param>
 ///
 public Incident( DateTime? date, Location location, Confidentiality confidentiality )
     : base(LearnerDTD.INCIDENT)
 {
     this.Date = date;
     this.SetLocation( location );
     this.SetConfidentiality( confidentiality );
 }
Example #2
0
 ///<summary>Sets the value of the <c>&lt;Incident&gt;</c> element.</summary>
 /// <param name="Date">Date and time Incident took place (started to take place)</param>
 /// <param name="Location">The Location the Incident (mostly) took place</param>
 /// <param name="Confidentiality">May indicate the type of persons that this should be displayed to</param>
 ///<remarks>
 /// <para>This form of <c>setIncident</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>Incident</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.3</para>
 /// </remarks>
 public void SetIncident(DateTime?Date, Location Location, Confidentiality Confidentiality)
 {
     RemoveChild(LearnerDTD.LEARNERBEHAVIOURINCIDENT_INCIDENT);
     AddChild(LearnerDTD.LEARNERBEHAVIOURINCIDENT_INCIDENT, new Incident(Date, Location, Confidentiality));
 }
Example #3
0
 /// <summary>
 /// Sets the value of the <c>&lt;Confidentiality&gt;</c> element.
 /// </summary>
 /// <param name="val">A Confidentiality object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this element as: "May indicate the type of persons that this should be displayed to"</para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 2.3</para>
 /// </remarks>
 public void SetConfidentiality( Confidentiality val )
 {
     SetField( LearnerDTD.INCIDENT_CONFIDENTIALITY, val );
 }
Example #4
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="date">Date and time Incident took place (started to take place)</param>
 ///<param name="location">The Location the Incident (mostly) took place</param>
 ///<param name="confidentiality">May indicate the type of persons that this should be displayed to</param>
 ///
 public Incident(DateTime?date, Location location, Confidentiality confidentiality) : base(LearnerDTD.INCIDENT)
 {
     this.Date = date;
     this.SetLocation(location);
     this.SetConfidentiality(confidentiality);
 }
Example #5
0
 /// <summary>
 /// Sets the value of the <c>&lt;Confidentiality&gt;</c> element.
 /// </summary>
 /// <param name="val">A Confidentiality object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this element as: "May indicate the type of persons that this should be displayed to"</para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.3</para>
 /// </remarks>
 public void SetConfidentiality(Confidentiality val)
 {
     SetField(LearnerDTD.INCIDENT_CONFIDENTIALITY, val);
 }
 ///<summary>Sets the value of the <c>&lt;Incident&gt;</c> element.</summary>
 /// <param name="Date">Date and time Incident took place (started to take place)</param>
 /// <param name="Location">The Location the Incident (mostly) took place</param>
 /// <param name="Confidentiality">May indicate the type of persons that this should be displayed to</param>
 ///<remarks>
 /// <para>This form of <c>setIncident</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>Incident</c></para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 2.3</para>
 /// </remarks>
 public void SetIncident( DateTime? Date, Location Location, Confidentiality Confidentiality )
 {
     RemoveChild( LearnerDTD.LEARNERBEHAVIOURINCIDENT_INCIDENT);
     AddChild( LearnerDTD.LEARNERBEHAVIOURINCIDENT_INCIDENT, new Incident( Date, Location, Confidentiality ) );
 }