Ejemplo n.º 1
0
 /// <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;
 }
Ejemplo n.º 2
0
 /// <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;
 }
Ejemplo n.º 3
0
 ///<summary>Sets the value of the <c>&lt;Address&gt;</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 ) );
 }
Ejemplo n.º 4
0
 ///<summary>Sets the value of the <c>&lt;Address&gt;</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 ) );
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Sets the value of the <c>Role</c> attribute.
 /// </summary>
 /// <param name="val">A AddressRoleType object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this attribute as: "A facet of Address"</para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 2.3</para>
 /// </remarks>
 public void SetRole( AddressRoleType val )
 {
     SetField( CommonDTD.ADDRESS_ROLE, val );
 }
 ///<summary>Sets the value of the <c>&lt;Address&gt;</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 ) );
 }
Ejemplo n.º 7
0
 ///<summary>Adds the value of the <c>&lt;Address&gt;</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 method <c>AddAddress</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.3</para>
 /// </remarks>
 public void AddAddress(AddressType Type, AddressRoleType Role, Street Street, string City, string PostalCode)
 {
     AddChild(CommonDTD.ADDRESSLIST_ADDRESS, new Address(Type, Role, Street, City, PostalCode));
 }
Ejemplo n.º 8
0
 ///<summary>Sets the value of the <c>&lt;Address&gt;</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(CommonDTD.CONTACTINFO_ADDRESS);
     AddChild(CommonDTD.CONTACTINFO_ADDRESS, new Address(Type, Role, Street, City, PostalCode));
 }
Ejemplo n.º 9
0
 /// <summary>
 /// Sets the value of the <c>Role</c> attribute.
 /// </summary>
 /// <param name="val">A AddressRoleType object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this attribute as: "A facet of Address"</para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.3</para>
 /// </remarks>
 public void SetRole(AddressRoleType val)
 {
     SetField(CommonDTD.ADDRESS_ROLE, val);
 }
 ///<summary>Sets the value of the <c>&lt;Address&gt;</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 ) );
 }