/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="type">Code that defines the location of the address. Note: A subset of specific valid values for each instance in a data object may be listed in that object.</param> ///<param name="role">A facet of Address</param> ///<param name="street">A Street</param> ///<param name="city">The city part of the address.</param> ///<param name="postalCode">The ZIP/postal code.</param> /// public Address( AddressType type, AddressRoleType role, Street street, string city, string postalCode ) : base(CommonDTD.ADDRESS) { this.SetType( type ); this.SetRole( role ); this.Street = street; this.City = city; this.PostalCode = postalCode; }
///<summary>Sets the value of the <c><Address></c> element.</summary> /// <param name="Type">Code that defines the location of the address. Note: A subset of specific valid values for each instance in a data object may be listed in that object.</param> /// <param name="Role">A facet of Address</param> /// <param name="Street">A Street</param> /// <param name="City">The city part of the address.</param> /// <param name="PostalCode">The ZIP/postal code.</param> ///<remarks> /// <para>This form of <c>setAddress</c> is provided as a convenience method /// that is functionally equivalent to the <c>Address</c></para> /// <para>Version: 2.6</para> /// <para>Since: 2.4</para> /// </remarks> public void SetAddress( AddressType Type, AddressRoleType Role, Street Street, string City, string PostalCode ) { RemoveChild( LearningDTD.CONTACT_ADDRESS); AddChild( LearningDTD.CONTACT_ADDRESS, new Address( Type, Role, Street, City, PostalCode ) ); }
///<summary>Sets the value of the <c><Address></c> element.</summary> /// <param name="Type">Code that defines the location of the address. Note: A subset of specific valid values for each instance in a data object may be listed in that object.</param> /// <param name="Role">A facet of Address</param> /// <param name="Street">A Street</param> /// <param name="City">The city part of the address.</param> /// <param name="PostalCode">The ZIP/postal code.</param> ///<remarks> /// <para>This form of <c>setAddress</c> is provided as a convenience method /// that is functionally equivalent to the <c>Address</c></para> /// <para>Version: 2.6</para> /// <para>Since: 2.3</para> /// </remarks> public void SetAddress( AddressType Type, AddressRoleType Role, Street Street, string City, string PostalCode ) { RemoveChild( ReportingDTD.REPORTAUTHORITYINFO_ADDRESS); AddChild( ReportingDTD.REPORTAUTHORITYINFO_ADDRESS, new Address( Type, Role, Street, City, PostalCode ) ); }
/// <summary> /// Sets the value of the <c>Type</c> attribute. /// </summary> /// <param name="val">A AddressType object</param> /// <remarks> /// <para>The SIF specification defines the meaning of this attribute as: "Code that defines the location of the address. Note: A subset of specific valid values for each instance in a data object may be listed in that object."</para> /// <para>Version: 2.5</para> /// <para>Since: 2.3</para> /// </remarks> public void SetType( AddressType val ) { SetField( CommonDTD.ADDRESS_TYPE, val ); }
///<summary>Sets the value of the <c><Address></c> element.</summary> /// <param name="Type">Code that defines the location of the address. Note: A subset of specific valid values for each instance in a data object may be listed in that object.</param> /// <param name="Role">A facet of Address</param> /// <param name="Street">A Street</param> /// <param name="City">The city part of the address.</param> /// <param name="PostalCode">The ZIP/postal code.</param> ///<remarks> /// <para>This form of <c>setAddress</c> is provided as a convenience method /// that is functionally equivalent to the <c>Address</c></para> /// <para>Version: 2.6</para> /// <para>Since: 2.6</para> /// </remarks> public void SetAddress( AddressType Type, AddressRoleType Role, Street Street, string City, string PostalCode ) { RemoveChild( Sif3assessmentDTD.SIF3ASSESSMENTSTUDENTSNAPSHOT_ADDRESS); AddChild( Sif3assessmentDTD.SIF3ASSESSMENTSTUDENTSNAPSHOT_ADDRESS, new Address( Type, Role, Street, City, PostalCode ) ); }
///<summary>Sets the value of the <c><Address></c> element.</summary> /// <param name="Type">Code that defines the location of the address. Note: A subset of specific valid values for each instance in a data object may be listed in that object.</param> /// <param name="Role">A facet of Address</param> /// <param name="Street">A Street</param> /// <param name="City">The city part of the address.</param> /// <param name="PostalCode">The ZIP/postal code.</param> ///<remarks> /// <para>This form of <c>setAddress</c> is provided as a convenience method /// that is functionally equivalent to the <c>Address</c></para> /// <para>Version: 2.6</para> /// <para>Since: 2.4</para> /// </remarks> public void SetAddress( AddressType Type, AddressRoleType Role, Street Street, string City, string PostalCode ) { RemoveChild( AssessmentDTD.ASSESSMENTADMINISTRATION_ADDRESS); AddChild( AssessmentDTD.ASSESSMENTADMINISTRATION_ADDRESS, new Address( Type, Role, Street, City, PostalCode ) ); }