java.lang.Object
software.xdev.bzst.dip.client.xmldocument.model.AddressType

public class AddressType extends Object
The user has the option to enter the data about the address of a party either as one long field or to spread the data over up to eight elements or even to use both formats. If the user chooses the option to enter the data required in separate elements, the container element for this will be 'AddressFix'. If the user chooses the option to enter the data required in a less structured way in 'AddressFree' all available address details shall be presented as one string of bytes, blank or "/" (slash) or carriage return- line feed used as a delimiter between parts of the address. PLEASE NOTE that the address country code is outside both of these elements. The use of the fixed form is recommended as a rule to allow easy matching. However, the use of the free form is recommended if the sending state cannot reliably identify and distinguish the different parts of the address. The user may want to use both formats e.g. if besides separating the logical parts of the address he also wants to indicate a suitable breakdown into print-lines by delimiters in the free text form. In this case 'AddressFix' has to precede 'AddressFree'.

Java class for Address_Type complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="Address_Type">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="CountryCode">
           <simpleType>
             <restriction base="{urn:oecd:ties:isodpitypes:v1}CountryCode_Type">
               <minLength value="1"/>
               <maxLength value="2"/>
             </restriction>
           </simpleType>
         </element>
         <choice>
           <element name="AddressFree" type="{urn:oecd:ties:dpistf:v1}StringMin1Max4000_Type"/>
           <sequence>
             <element name="AddressFix" type="{urn:oecd:ties:dpi:v1}AddressFix_Type"/>
             <element name="AddressFree" type="{urn:oecd:ties:dpistf:v1}StringMin1Max4000_Type" minOccurs="0"/>
           </sequence>
         </choice>
       </sequence>
       <attribute name="legalAddressType" type="{urn:oecd:ties:dpistf:v1}OECDLegalAddressType_EnumType" />
     </restriction>
   </complexContent>
 </complexType>
 
  • Field Details

  • Constructor Details

    • AddressType

      public AddressType()
  • Method Details

    • getContent

      public List<jakarta.xml.bind.JAXBElement<?>> getContent()
      Gets the rest of the content model.

      You are getting this "catch-all" property because of the following reason: The field name "AddressFree" is used by two different parts of a schema.

      To get rid of this property, apply a property customization to one of both of the following declarations to change their names: Gets the value of the content property.

      This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the Jakarta XML Binding object. This is why there is not a set method for the content property.

      For example, to add a new item, do as follows:

          getContent().add(newItem);
       

      Objects of the following type(s) are allowed in the list JAXBElement<String> JAXBElement<AddressFixType> JAXBElement<CountryCodeType>

    • getLegalAddressType

      public OECDLegalAddressTypeEnumType getLegalAddressType()
      Gets the value of the legalAddressType property.
      Returns:
      possible object is OECDLegalAddressTypeEnumType
    • setLegalAddressType

      public void setLegalAddressType(OECDLegalAddressTypeEnumType value)
      Sets the value of the legalAddressType property.
      Parameters:
      value - allowed object is OECDLegalAddressTypeEnumType