/* * Geotoolkit - An Open Source Java GIS Toolkit * http://www.geotoolkit.org * * (C) 2010, 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.model; import java.util.List; /** * <p>This interface maps AdministrativeArea element.</p> * * <p>Examples of administrative areas are provinces counties, special regions (such as "Rijnmond"), etc.</p> * * <pre> * <xs:element name="AdministrativeArea"> * <xs:complexType> * <xs:sequence> * <xs:element ref="AddressLine" minOccurs="0" maxOccurs="unbounded"/> * <xs:element name="AdministrativeAreaName" minOccurs="0" maxOccurs="unbounded">... * </xs:element> * <xs:element name="SubAdministrativeArea" minOccurs="0">... * </xs:element> * <xs:choice minOccurs="0"> * <xs:element ref="Locality"/> * <xs:element ref="PostOffice"/> * <xs:element ref="PostalCode"/> * </xs:choice> * <xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded"/> * </xs:sequence> * <xs:attribute name="Type">... * </xs:attribute> * <xs:attribute name="UsageType">... * </xs:attribute> * <xs:attribute name="Indicator">... * </xs:attribute> * <xs:anyAttribute namespace="##other"/> * </xs:complexType> * </xs:element> * </pre> * * @author Samuel Andrés * @module */ public interface AdministrativeArea { /** * * @return */ List<GenericTypedGrPostal> getAddressLines(); /** * * @param addressLines */ void setAddressLines(List<GenericTypedGrPostal> addressLines); /** * * @return */ List<GenericTypedGrPostal> getAdministrativeAreaNames(); /** * * @param administrativeAreaNames */ void setAdministrativeAreaNames(List<GenericTypedGrPostal> administrativeAreaNames); /** * * @return */ SubAdministrativeArea getSubAdministrativeArea(); /** * * @param subAdministrativeArea */ void setSubAdministrativeArea(SubAdministrativeArea subAdministrativeArea); /* * === CHOICE: === */ /** * * @return */ Locality getLocality(); /** * * @param locality */ void setLocality(Locality locality); /** * * @return */ PostOffice getPostOffice(); /** * * @param postOffice */ void setPostOffice(PostOffice postOffice); /** * * @return */ PostalCode getPostalCode(); /** * * @param postalCode */ void setPostalCode(PostalCode postalCode); /* * === END OF CHOICE === * * === ATTRIBUTES: === */ /** * <p>Province or State or County or Kanton, etc.</p> * * @return */ String getType(); /** * * @param type */ void setType(String type); /** * <p>ostal or Political - Sometimes locations must be distinguished between postal system, * and physical locations as defined by a political system.</p> * * @return */ String getUsageType(); /** * * @param usageType */ void setUsageType(String usageType); /** * <p>Erode (Dist) where (Dist) is the Indicator.</p> * * @return */ String getIndicator(); /** * * @param Indicator */ void setIndicator(String Indicator); }