Beispiel #1
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="code">Religion Code</param>
 ///
 public Religion( ReligionType code )
     : base(CommonDTD.RELIGION)
 {
     this.SetCode( code );
 }
Beispiel #2
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="code">Religion Code</param>
 ///
 public Religion(ReligionType code) : base(CommonDTD.RELIGION)
 {
     this.SetCode(code);
 }
Beispiel #3
0
 /// <summary>
 /// Sets the value of the <c>&lt;Code&gt;</c> element.
 /// </summary>
 /// <param name="val">A ReligionType object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this element as: "Religion Code"</para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 2.3</para>
 /// </remarks>
 public void SetCode( ReligionType val )
 {
     SetField( CommonDTD.RELIGION_CODE, val );
 }
Beispiel #4
0
 ///<summary>Sets the value of the <c>&lt;Religion&gt;</c> element.</summary>
 /// <param name="Code">Religion Code</param>
 ///<remarks>
 /// <para>This form of <c>setReligion</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>Religion</c></para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 2.3</para>
 /// </remarks>
 public void SetReligion( ReligionType Code )
 {
     RemoveChild( CommonDTD.DEMOGRAPHICS_RELIGION);
     AddChild( CommonDTD.DEMOGRAPHICS_RELIGION, new Religion( Code ) );
 }