/*
* 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 javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
/**
*
* The AddressType is the Address_ADT for OpenLS and it supports the concepts of the OGC Geocoder document 01-026r1
* with some modifications which resulted in both simplifications and improved handling capability. The definition is also
* broad enough to handle some of the more obscure occurrences of street addressing as well as handling the
* case of when all you have is an un-parsed string representing the complete address. We could generalize this even
* further to handle non-street addressing schemes found in other industries, such as the Municipal Survey Addressing
* schemes that are used by Municipalities to address the lots on which a building may be placed but that is probably a
* future requirement outside the scope of OLS1.
*
*
* <p>Java class for AbstractAddressType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="AbstractAddressType">
* <complexContent>
* <extension base="{http://www.opengis.net/xls}AbstractLocationType">
* <attribute name="addressee" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="countryCode" use="required" type="{http://www.opengis.net/xls}CountryCodeType" />
* <attribute name="language" type="{http://www.w3.org/2001/XMLSchema}language" />
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "AbstractAddressType")
@XmlSeeAlso({
AddressType.class
})
public abstract class AbstractAddressType extends AbstractLocationType {
@XmlAttribute
private String addressee;
@XmlAttribute(required = true)
private String countryCode;
@XmlAttribute
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlSchemaType(name = "language")
private String language;
/**
* Gets the value of the addressee property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getAddressee() {
return addressee;
}
/**
* Sets the value of the addressee property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setAddressee(String value) {
this.addressee = value;
}
/**
* Gets the value of the countryCode property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCountryCode() {
return countryCode;
}
/**
* Sets the value of the countryCode property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCountryCode(String value) {
this.countryCode = value;
}
/**
* Gets the value of the language property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getLanguage() {
return language;
}
/**
* Sets the value of the language property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setLanguage(String value) {
this.language = value;
}
}