/*
* Geotoolkit - An Open Source Java GIS Toolkit
* http://www.geotoolkit.org
*
* (C) 2011, 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.ols.xml.v121;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* Defines an address
*
* <p>Java class for AddressType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="AddressType">
* <complexContent>
* <extension base="{http://www.opengis.net/xls}AbstractAddressType">
* <choice>
* <element name="freeFormAddress" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <sequence>
* <element ref="{http://www.opengis.net/xls}StreetAddress"/>
* <element ref="{http://www.opengis.net/xls}Place" maxOccurs="unbounded" minOccurs="0"/>
* <element ref="{http://www.opengis.net/xls}PostalCode" minOccurs="0"/>
* </sequence>
* </choice>
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "AddressType", propOrder = {
"freeFormAddress",
"streetAddress",
"place",
"postalCode"
})
public class AddressType extends AbstractAddressType {
private String freeFormAddress;
@XmlElement(name = "StreetAddress")
private StreetAddressType streetAddress;
@XmlElement(name = "Place")
private List<NamedPlaceType> place;
@XmlElement(name = "PostalCode")
private String postalCode;
/**
* Gets the value of the freeFormAddress property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFreeFormAddress() {
return freeFormAddress;
}
/**
* Sets the value of the freeFormAddress property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFreeFormAddress(String value) {
this.freeFormAddress = value;
}
/**
* Gets the value of the streetAddress property.
*
* @return
* possible object is
* {@link StreetAddressType }
*
*/
public StreetAddressType getStreetAddress() {
return streetAddress;
}
/**
* Sets the value of the streetAddress property.
*
* @param value
* allowed object is
* {@link StreetAddressType }
*
*/
public void setStreetAddress(StreetAddressType value) {
this.streetAddress = value;
}
/**
* Gets the value of the place property.
*
*/
public List<NamedPlaceType> getPlace() {
if (place == null) {
place = new ArrayList<NamedPlaceType>();
}
return this.place;
}
/**
* Gets the value of the postalCode property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPostalCode() {
return postalCode;
}
/**
* Sets the value of the postalCode property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPostalCode(String value) {
this.postalCode = value;
}
}