/// <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 ); }
///<summary>Sets the value of the <c><Incident></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)); }
/// <summary> /// Sets the value of the <c><Confidentiality></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 ); }
/// <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); }
/// <summary> /// Sets the value of the <c><Confidentiality></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><Incident></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 ) ); }