/*
* Geotoolkit - An Open Source Java GIS Toolkit
* http://www.geotoolkit.org
*
* (C) 2008 - 2009, Geomatys
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*/
package org.geotoolkit.xal.xml.v20;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyAttribute;
import javax.xml.bind.annotation.XmlAnyElement;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlValue;
import javax.xml.namespace.QName;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element ref="{urn:oasis:names:tc:ciq:xsdschema:xAL:2.0}AddressLine" maxOccurs="unbounded" minOccurs="0"/>
* <element name="PostBoxNumber">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <attGroup ref="{urn:oasis:names:tc:ciq:xsdschema:xAL:2.0}grPostal"/>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* <element name="PostBoxNumberPrefix" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <attGroup ref="{urn:oasis:names:tc:ciq:xsdschema:xAL:2.0}grPostal"/>
* <attribute name="NumberPrefixSeparator" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* <element name="PostBoxNumberSuffix" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <attGroup ref="{urn:oasis:names:tc:ciq:xsdschema:xAL:2.0}grPostal"/>
* <attribute name="NumberSuffixSeparator" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* <element name="PostBoxNumberExtension" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <attribute name="NumberExtensionSeparator" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* <element name="Firm" type="{urn:oasis:names:tc:ciq:xsdschema:xAL:2.0}FirmType" minOccurs="0"/>
* <element ref="{urn:oasis:names:tc:ciq:xsdschema:xAL:2.0}PostalCode" minOccurs="0"/>
* <any/>
* </sequence>
* <attribute name="Type" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
* <attribute name="Indicator" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
* @module
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"addressLine",
"postBoxNumber",
"postBoxNumberPrefix",
"postBoxNumberSuffix",
"postBoxNumberExtension",
"firm",
"postalCode",
"any"
})
@XmlRootElement(name = "PostBox")
public class PostBox {
@XmlElement(name = "AddressLine")
private List<AddressLine> addressLine;
@XmlElement(name = "PostBoxNumber", required = true)
private PostBox.PostBoxNumber postBoxNumber;
@XmlElement(name = "PostBoxNumberPrefix")
private PostBox.PostBoxNumberPrefix postBoxNumberPrefix;
@XmlElement(name = "PostBoxNumberSuffix")
private PostBox.PostBoxNumberSuffix postBoxNumberSuffix;
@XmlElement(name = "PostBoxNumberExtension")
private PostBox.PostBoxNumberExtension postBoxNumberExtension;
@XmlElement(name = "Firm")
private FirmType firm;
@XmlElement(name = "PostalCode")
private PostalCode postalCode;
@XmlAnyElement(lax = true)
private List<Object> any;
@XmlAttribute(name = "Type")
@XmlSchemaType(name = "anySimpleType")
private String type;
@XmlAttribute(name = "Indicator")
@XmlSchemaType(name = "anySimpleType")
private String indicator;
@XmlAnyAttribute
private Map<QName, String> otherAttributes = new HashMap<QName, String>();
/**
* Gets the value of the addressLine property.
*
* <p>
* 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 JAXB object.
* This is why there is not a <CODE>set</CODE> method for the addressLine property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getAddressLine().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link AddressLine }
*
*
*/
public List<AddressLine> getAddressLine() {
if (addressLine == null) {
addressLine = new ArrayList<AddressLine>();
}
return this.addressLine;
}
/**
* Gets the value of the postBoxNumber property.
*
* @return
* possible object is
* {@link PostBox.PostBoxNumber }
*
*/
public PostBox.PostBoxNumber getPostBoxNumber() {
return postBoxNumber;
}
/**
* Sets the value of the postBoxNumber property.
*
* @param value
* allowed object is
* {@link PostBox.PostBoxNumber }
*
*/
public void setPostBoxNumber(final PostBox.PostBoxNumber value) {
this.postBoxNumber = value;
}
/**
* Gets the value of the postBoxNumberPrefix property.
*
* @return
* possible object is
* {@link PostBox.PostBoxNumberPrefix }
*
*/
public PostBox.PostBoxNumberPrefix getPostBoxNumberPrefix() {
return postBoxNumberPrefix;
}
/**
* Sets the value of the postBoxNumberPrefix property.
*
* @param value
* allowed object is
* {@link PostBox.PostBoxNumberPrefix }
*
*/
public void setPostBoxNumberPrefix(final PostBox.PostBoxNumberPrefix value) {
this.postBoxNumberPrefix = value;
}
/**
* Gets the value of the postBoxNumberSuffix property.
*
* @return
* possible object is
* {@link PostBox.PostBoxNumberSuffix }
*
*/
public PostBox.PostBoxNumberSuffix getPostBoxNumberSuffix() {
return postBoxNumberSuffix;
}
/**
* Sets the value of the postBoxNumberSuffix property.
*
* @param value
* allowed object is
* {@link PostBox.PostBoxNumberSuffix }
*
*/
public void setPostBoxNumberSuffix(final PostBox.PostBoxNumberSuffix value) {
this.postBoxNumberSuffix = value;
}
/**
* Gets the value of the postBoxNumberExtension property.
*
* @return
* possible object is
* {@link PostBox.PostBoxNumberExtension }
*
*/
public PostBox.PostBoxNumberExtension getPostBoxNumberExtension() {
return postBoxNumberExtension;
}
/**
* Sets the value of the postBoxNumberExtension property.
*
* @param value
* allowed object is
* {@link PostBox.PostBoxNumberExtension }
*
*/
public void setPostBoxNumberExtension(final PostBox.PostBoxNumberExtension value) {
this.postBoxNumberExtension = value;
}
/**
* Gets the value of the firm property.
*
* @return
* possible object is
* {@link FirmType }
*
*/
public FirmType getFirm() {
return firm;
}
/**
* Sets the value of the firm property.
*
* @param value
* allowed object is
* {@link FirmType }
*
*/
public void setFirm(final FirmType value) {
this.firm = value;
}
/**
* Gets the value of the postalCode property.
*
* @return
* possible object is
* {@link PostalCode }
*
*/
public PostalCode getPostalCode() {
return postalCode;
}
/**
* Sets the value of the postalCode property.
*
* @param value
* allowed object is
* {@link PostalCode }
*
*/
public void setPostalCode(final PostalCode value) {
this.postalCode = value;
}
/**
* Gets the value of the any property.
*
* <p>
* 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 JAXB object.
* This is why there is not a <CODE>set</CODE> method for the any property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getAny().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Object }
*
*
*/
public List<Object> getAny() {
if (any == null) {
any = new ArrayList<Object>();
}
return this.any;
}
/**
* Gets the value of the type property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getType() {
return type;
}
/**
* Sets the value of the type property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setType(final String value) {
this.type = value;
}
/**
* Gets the value of the indicator property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getIndicator() {
return indicator;
}
/**
* Sets the value of the indicator property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setIndicator(final String value) {
this.indicator = value;
}
/**
* Gets a map that contains attributes that aren't bound to any typed property on this class.
*
* <p>
* the map is keyed by the name of the attribute and
* the value is the string value of the attribute.
*
* the map returned by this method is live, and you can add new attribute
* by updating the map directly. Because of this design, there's no setter.
*
*
* @return
* always non-null
*/
public Map<QName, String> getOtherAttributes() {
return otherAttributes;
}
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <attGroup ref="{urn:oasis:names:tc:ciq:xsdschema:xAL:2.0}grPostal"/>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"content"
})
public static class PostBoxNumber {
@XmlValue
private String content;
@XmlAttribute(name = "Code")
@XmlSchemaType(name = "anySimpleType")
private String code;
@XmlAnyAttribute
private Map<QName, String> otherAttributes = new HashMap<QName, String>();
/**
* Gets the value of the content property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getContent() {
return content;
}
/**
* Sets the value of the content property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setContent(final String value) {
this.content = value;
}
/**
* Gets the value of the code property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCode() {
return code;
}
/**
* Sets the value of the code property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCode(final String value) {
this.code = value;
}
/**
* Gets a map that contains attributes that aren't bound to any typed property on this class.
*
* <p>
* the map is keyed by the name of the attribute and
* the value is the string value of the attribute.
*
* the map returned by this method is live, and you can add new attribute
* by updating the map directly. Because of this design, there's no setter.
*
*
* @return
* always non-null
*/
public Map<QName, String> getOtherAttributes() {
return otherAttributes;
}
}
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <attribute name="NumberExtensionSeparator" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"content"
})
public static class PostBoxNumberExtension {
@XmlValue
private String content;
@XmlAttribute(name = "NumberExtensionSeparator")
@XmlSchemaType(name = "anySimpleType")
private String numberExtensionSeparator;
@XmlAnyAttribute
private Map<QName, String> otherAttributes = new HashMap<QName, String>();
/**
* Gets the value of the content property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getContent() {
return content;
}
/**
* Sets the value of the content property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setContent(final String value) {
this.content = value;
}
/**
* Gets the value of the numberExtensionSeparator property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getNumberExtensionSeparator() {
return numberExtensionSeparator;
}
/**
* Sets the value of the numberExtensionSeparator property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setNumberExtensionSeparator(final String value) {
this.numberExtensionSeparator = value;
}
/**
* Gets a map that contains attributes that aren't bound to any typed property on this class.
*
* <p>
* the map is keyed by the name of the attribute and
* the value is the string value of the attribute.
*
* the map returned by this method is live, and you can add new attribute
* by updating the map directly. Because of this design, there's no setter.
*
*
* @return
* always non-null
*/
public Map<QName, String> getOtherAttributes() {
return otherAttributes;
}
}
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <attGroup ref="{urn:oasis:names:tc:ciq:xsdschema:xAL:2.0}grPostal"/>
* <attribute name="NumberPrefixSeparator" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"content"
})
public static class PostBoxNumberPrefix {
@XmlValue
private String content;
@XmlAttribute(name = "NumberPrefixSeparator")
@XmlSchemaType(name = "anySimpleType")
private String numberPrefixSeparator;
@XmlAttribute(name = "Code")
@XmlSchemaType(name = "anySimpleType")
private String code;
@XmlAnyAttribute
private Map<QName, String> otherAttributes = new HashMap<QName, String>();
/**
* Gets the value of the content property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getContent() {
return content;
}
/**
* Sets the value of the content property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setContent(final String value) {
this.content = value;
}
/**
* Gets the value of the numberPrefixSeparator property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getNumberPrefixSeparator() {
return numberPrefixSeparator;
}
/**
* Sets the value of the numberPrefixSeparator property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setNumberPrefixSeparator(final String value) {
this.numberPrefixSeparator = value;
}
/**
* Gets the value of the code property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCode() {
return code;
}
/**
* Sets the value of the code property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCode(final String value) {
this.code = value;
}
/**
* Gets a map that contains attributes that aren't bound to any typed property on this class.
*
* <p>
* the map is keyed by the name of the attribute and
* the value is the string value of the attribute.
*
* the map returned by this method is live, and you can add new attribute
* by updating the map directly. Because of this design, there's no setter.
*
*
* @return
* always non-null
*/
public Map<QName, String> getOtherAttributes() {
return otherAttributes;
}
}
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <attGroup ref="{urn:oasis:names:tc:ciq:xsdschema:xAL:2.0}grPostal"/>
* <attribute name="NumberSuffixSeparator" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"content"
})
public static class PostBoxNumberSuffix {
@XmlValue
private String content;
@XmlAttribute(name = "NumberSuffixSeparator")
@XmlSchemaType(name = "anySimpleType")
private String numberSuffixSeparator;
@XmlAttribute(name = "Code")
@XmlSchemaType(name = "anySimpleType")
private String code;
@XmlAnyAttribute
private Map<QName, String> otherAttributes = new HashMap<QName, String>();
/**
* Gets the value of the content property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getContent() {
return content;
}
/**
* Sets the value of the content property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setContent(final String value) {
this.content = value;
}
/**
* Gets the value of the numberSuffixSeparator property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getNumberSuffixSeparator() {
return numberSuffixSeparator;
}
/**
* Sets the value of the numberSuffixSeparator property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setNumberSuffixSeparator(final String value) {
this.numberSuffixSeparator = value;
}
/**
* Gets the value of the code property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCode() {
return code;
}
/**
* Sets the value of the code property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCode(final String value) {
this.code = value;
}
/**
* Gets a map that contains attributes that aren't bound to any typed property on this class.
*
* <p>
* the map is keyed by the name of the attribute and
* the value is the string value of the attribute.
*
* the map returned by this method is live, and you can add new attribute
* by updating the map directly. Because of this design, there's no setter.
*
*
* @return
* always non-null
*/
public Map<QName, String> getOtherAttributes() {
return otherAttributes;
}
}
}