public class Address extends Object implements XmlNamespaceConstants
<complexType name="AddressType"> <annotation> <documentation>Defines an address</documentation> </annotation> <complexContent> <extension base="xls:AbstractAddressType"> <choice> <element name="freeFormAddress" type="string"> <annotation> <documentation>An unstructured free form address.</documentation> </annotation> </element> <sequence> <element ref="xls:StreetAddress" /> <element ref="xls:Place" minOccurs="0" maxOccurs="unbounded" /> <element ref="xls:PostalCode" minOccurs="0" /> </sequence> </choice> </extension> </complexContent> </complexType>
OGC_GML_NAMESPACE_PREFIX, OGC_GML_NAMESPACE_URI, OPENLS_NAMESPACE_PREFIX, OPENLS_NAMESPACE_SCHEMALOCATION, OPENLS_NAMESPACE_URI
Constructor and Description |
---|
Address()
Instantiates a new address.
|
Address(String countryCode,
StreetAddress streetAddress,
PostalCode postalCode)
Instantiates a new address.
|
Modifier and Type | Method and Description |
---|---|
void |
addPlace(Place val)
Adds the place.
|
String |
getCountryCode()
Gets the country code.
|
Place |
getPlaceAt(int i)
Gets the place at.
|
String |
getPlaceByType(String type)
Gets the place by type.
|
int |
getPlaceSize()
Gets the place size.
|
PostalCode |
getPostalCode()
Gets the postal code.
|
StreetAddress |
getStreetAddress()
Gets the street address.
|
boolean |
hasCountryCode()
Checks for country code.
|
boolean |
hasPlaceType(String type)
Checks for place type.
|
boolean |
hasPostalCode()
Checks for postal code.
|
boolean |
hasStreetAddress()
Checks for street address.
|
void |
setCountryCode(String countryCode)
Sets the country code.
|
void |
setPostalCode(PostalCode postalCode)
Sets the postal code.
|
void |
setStreetAddress(StreetAddress streetAddress)
Sets the street address.
|
String |
toXML()
geeft een XML string representatie van dit object.
|
public Address()
public Address(String countryCode, StreetAddress streetAddress, PostalCode postalCode)
countryCode
- the country codestreetAddress
- the street addresspostalCode
- the postal codepublic void setCountryCode(String countryCode)
countryCode
- the new country codepublic String getCountryCode()
public boolean hasCountryCode()
public void setStreetAddress(StreetAddress streetAddress)
streetAddress
- the new street addresspublic StreetAddress getStreetAddress()
public boolean hasStreetAddress()
public void setPostalCode(PostalCode postalCode)
postalCode
- the new postal codepublic PostalCode getPostalCode()
public boolean hasPostalCode()
public void addPlace(Place val)
val
- the valpublic Place getPlaceAt(int i)
i
- the ipublic int getPlaceSize()
public String getPlaceByType(String type)
type
- the typepublic boolean hasPlaceType(String type)
type
- the typepublic String toXML()
XmlNamespaceConstants
toXML
in interface XmlNamespaceConstants
Copyright © 2012–2014 Ministerie EZ. All rights reserved.