///<summary>Sets the value of the <c><Traveller></c> element.</summary> /// <param name="Code">Code to identify type of traveller/gypsy.</param> ///<remarks> /// <para>This form of <c>setTraveller</c> is provided as a convenience method /// that is functionally equivalent to the <c>Traveller</c></para> /// <para>Version: 2.6</para> /// <para>Since: 2.0</para> /// </remarks> public void SetTraveller( TravellerCode Code ) { RemoveChild( CommonDTD.DEMOGRAPHICS_TRAVELLER); AddChild( CommonDTD.DEMOGRAPHICS_TRAVELLER, new Traveller( Code ) ); }
///<summary>Sets the value of the <c><Traveller></c> element.</summary> /// <param name="Code">Code to identify type of traveller/gypsy.</param> ///<remarks> /// <para>This form of <c>setTraveller</c> is provided as a convenience method /// that is functionally equivalent to the <c>Traveller</c></para> /// <para>Version: 2.6</para> /// <para>Since: 2.0</para> /// </remarks> public void SetTraveller(TravellerCode Code) { RemoveChild(CommonDTD.DEMOGRAPHICS_TRAVELLER); AddChild(CommonDTD.DEMOGRAPHICS_TRAVELLER, new Traveller(Code)); }
/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="code">Code to identify type of traveller/gypsy.</param> /// public Traveller( TravellerCode code ) : base(CommonDTD.TRAVELLER) { this.SetCode( code ); }
/// <summary> /// Sets the value of the <c><Code></c> element. /// </summary> /// <param name="val">A TravellerCode object</param> /// <remarks> /// <para>The SIF specification defines the meaning of this element as: "Code to identify type of traveller/gypsy."</para> /// <para>Version: 2.5</para> /// <para>Since: 2.0</para> /// </remarks> public void SetCode( TravellerCode val ) { SetField( CommonDTD.TRAVELLER_CODE, val ); }
/// <summary> /// Sets the value of the <c><Code></c> element. /// </summary> /// <param name="val">A TravellerCode object</param> /// <remarks> /// <para>The SIF specification defines the meaning of this element as: "Code to identify type of traveller/gypsy."</para> /// <para>Version: 2.6</para> /// <para>Since: 2.0</para> /// </remarks> public void SetCode(TravellerCode val) { SetField(CommonDTD.TRAVELLER_CODE, val); }
/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="code">Code to identify type of traveller/gypsy.</param> /// public Traveller(TravellerCode code) : base(CommonDTD.TRAVELLER) { this.SetCode(code); }