public class DefaultAddress extends ISOMetadata implements Address
Limitations:
XML instead.Defined in the sis-metadata module
identifiers| Constructor and Description |
|---|
DefaultAddress()
Constructs an initially empty address.
|
DefaultAddress(Address object)
Constructs a new instance initialized with the values from the specified metadata object.
|
| Modifier and Type | Method and Description |
|---|---|
static DefaultAddress |
castOrCopy(Address object)
Returns a SIS metadata implementation with the values of the given arbitrary implementation.
|
InternationalString |
getAdministrativeArea()
Return the state, province of the location.
|
InternationalString |
getCity()
Returns the city of the location.
|
InternationalString |
getCountry()
Returns the country of the physical address.
|
Collection<String> |
getDeliveryPoints()
Returns the address line for the location (as described in ISO 11180, Annex A).
|
Collection<String> |
getElectronicMailAddresses()
Returns the address of the electronic mailbox of the responsible organization or individual.
|
String |
getPostalCode()
Returns ZIP or other postal code.
|
void |
setAdministrativeArea(InternationalString newValue)
Sets the state, province of the location.
|
void |
setCity(InternationalString newValue)
Sets the city of the location.
|
void |
setCountry(InternationalString newValue)
Sets the country of the physical address.
|
void |
setDeliveryPoints(Collection<? extends String> newValues)
Sets the address line for the location (as described in ISO 11180, Annex A).
|
void |
setElectronicMailAddresses(Collection<? extends String> newValues)
Sets the address of the electronic mailbox of the responsible organization or individual.
|
void |
setPostalCode(String newValue)
Sets ZIP or other postal code.
|
freeze, getIdentifierMap, getIdentifiers, getStandardcheckWritePermission, clone, collectionType, copyCollection, copyList, copySet, isModifiable, nonNullCollection, nonNullList, nonNullSet, singleton, unmodifiable, writeCollection, writeList, writeSetasMap, asTreeTable, equals, equals, getInterface, hashCode, isEmpty, prune, toStringpublic DefaultAddress()
public DefaultAddress(Address object)
object - the metadata to copy values from, or null if none.castOrCopy(Address)public static DefaultAddress castOrCopy(Address object)
null, then this method returns null.DefaultAddress, then it is returned unchanged.DefaultAddress instance is created using the
copy constructor
and returned. Note that this is a shallow copy operation, since the other
metadata contained in the given object are not recursively copied.object - the object to get as a SIS implementation, or null if none.null if the argument was null.public InternationalString getAdministrativeArea()
getAdministrativeArea in interface Addressnull.public void setAdministrativeArea(InternationalString newValue)
newValue - the new administrative area.public InternationalString getCity()
public void setCity(InternationalString newValue)
newValue - the new city, or null if none.public InternationalString getCountry()
getCountry in interface Addressnull.public void setCountry(InternationalString newValue)
newValue - the new country, or null if none.public Collection<String> getDeliveryPoints()
Collection<String> to
Collection<? extends InternationalString> in GeoAPI 4.0.
getDeliveryPoints in interface Addresspublic void setDeliveryPoints(Collection<? extends String> newValues)
Collection<String> to
Collection<? extends InternationalString> in GeoAPI 4.0.
newValues - the new delivery points, or null if none.public Collection<String> getElectronicMailAddresses()
getElectronicMailAddresses in interface Addresspublic void setElectronicMailAddresses(Collection<? extends String> newValues)
newValues - the new electronic mail addresses, or null if none.public String getPostalCode()
getPostalCode in interface Addressnull.public void setPostalCode(String newValue)
newValue - the new postal code, or null if none.Copyright © 2010–2017 The Apache Software Foundation. All rights reserved.