public class Locality
extends java.lang.Object
implements java.lang.Cloneable
| Modifier and Type | Class and Description |
|---|---|
static class |
Locality.LocalityName |
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<AddressLine> |
addressLine |
protected java.util.List<java.lang.Object> |
any |
protected DependentLocality |
dependentLocality |
protected java.lang.String |
indicator |
protected LargeMailUser |
largeMailUser |
protected java.util.List<Locality.LocalityName> |
localityName |
protected PostalCode |
postalCode |
protected PostalRoute |
postalRoute |
protected PostBox |
postBox |
protected PostOffice |
postOffice |
protected Premise |
premise |
protected Thoroughfare |
thoroughfare |
protected java.lang.String |
underscore |
protected java.lang.String |
usage |
| Constructor and Description |
|---|
Locality(PostBox postBox,
LargeMailUser largeMailUser,
PostOffice postOffice,
PostalRoute postalRoute)
Value constructor with only mandatory fields
|
| Modifier and Type | Method and Description |
|---|---|
Locality |
addToAddressLine(AddressLine addressLine)
add a value to the addressLine property collection
|
Locality |
addToAny(java.lang.Object any)
add a value to the any property collection
|
Locality |
addToLocalityName(Locality.LocalityName localityName)
add a value to the localityName property collection
|
Locality |
clone() |
AddressLine |
createAndAddAddressLine()
Creates a new instance of
AddressLine and adds it to addressLine. |
Locality.LocalityName |
createAndAddLocalityName()
Creates a new instance of
Locality.LocalityName and adds it to localityName. |
DependentLocality |
createAndSetDependentLocality(PostBox postBox,
LargeMailUser largeMailUser,
PostOffice postOffice,
PostalRoute postalRoute)
Creates a new instance of
DependentLocality and set it to dependentLocality. |
LargeMailUser |
createAndSetLargeMailUser()
Creates a new instance of
LargeMailUser and set it to largeMailUser. |
PostalCode |
createAndSetPostalCode()
Creates a new instance of
PostalCode and set it to postalCode. |
PostalRoute |
createAndSetPostalRoute(java.util.List<PostalRoute.PostalRouteName> postalRouteName,
PostalRoute.PostalRouteNumber postalRouteNumber)
Creates a new instance of
PostalRoute and set it to postalRoute. |
PostBox |
createAndSetPostBox(PostBox.PostBoxNumber postBoxNumber)
Creates a new instance of
PostBox and set it to postBox. |
PostOffice |
createAndSetPostOffice()
Creates a new instance of
PostOffice and set it to postOffice. |
Premise |
createAndSetPremise(Premise.PremiseLocation premiseLocation,
java.util.List<PremiseNumber> premiseNumber,
Premise.PremiseNumberRange premiseNumberRange)
Creates a new instance of
Premise and set it to premise. |
Thoroughfare |
createAndSetThoroughfare(DependentLocality dependentLocality,
Premise premise,
Firm firm,
PostalCode postalCode)
Creates a new instance of
Thoroughfare and set it to thoroughfare. |
boolean |
equals(java.lang.Object obj) |
java.util.List<AddressLine> |
getAddressLine() |
java.util.List<java.lang.Object> |
getAny() |
DependentLocality |
getDependentLocality() |
java.lang.String |
getIndicator() |
LargeMailUser |
getLargeMailUser() |
java.util.List<Locality.LocalityName> |
getLocalityName() |
java.util.Map<javax.xml.namespace.QName,java.lang.String> |
getOtherAttributes() |
PostalCode |
getPostalCode() |
PostalRoute |
getPostalRoute() |
PostBox |
getPostBox() |
PostOffice |
getPostOffice() |
Premise |
getPremise() |
Thoroughfare |
getThoroughfare() |
java.lang.String |
getUnderscore() |
java.lang.String |
getUsage() |
int |
hashCode() |
void |
setAddressLine(java.util.List<AddressLine> addressLine)
Sets the value of the addressLine property Objects of the following type(s) are allowed in the list List
|
void |
setAny(java.util.List<java.lang.Object> any)
Sets the value of the any property Objects of the following type(s) are allowed in the list List
|
void |
setDependentLocality(DependentLocality value) |
void |
setIndicator(java.lang.String value) |
void |
setLargeMailUser(LargeMailUser value) |
void |
setLocalityName(java.util.List<Locality.LocalityName> localityName)
Sets the value of the localityName property Objects of the following type(s) are allowed in the list List
|
void |
setPostalCode(PostalCode value) |
void |
setPostalRoute(PostalRoute value) |
void |
setPostBox(PostBox value) |
void |
setPostOffice(PostOffice value) |
void |
setPremise(Premise value) |
void |
setThoroughfare(Thoroughfare value) |
void |
setUnderscore(java.lang.String value) |
void |
setUsage(java.lang.String value) |
Locality |
withAddressLine(java.util.List<AddressLine> addressLine)
fluent setter
|
Locality |
withAny(java.util.List<java.lang.Object> any)
fluent setter
|
Locality |
withDependentLocality(DependentLocality dependentLocality)
fluent setter
|
Locality |
withIndicator(java.lang.String indicator)
fluent setter
|
Locality |
withLocalityName(java.util.List<Locality.LocalityName> localityName)
fluent setter
|
Locality |
withPostalCode(PostalCode postalCode)
fluent setter
|
Locality |
withPremise(Premise premise)
fluent setter
|
Locality |
withThoroughfare(Thoroughfare thoroughfare)
fluent setter
|
Locality |
withUnderscore(java.lang.String underscore)
fluent setter
|
Locality |
withUsage(java.lang.String usage)
fluent setter
|
protected java.util.List<AddressLine> addressLine
protected java.util.List<Locality.LocalityName> localityName
protected PostBox postBox
protected LargeMailUser largeMailUser
protected PostOffice postOffice
protected PostalRoute postalRoute
protected Thoroughfare thoroughfare
protected Premise premise
protected DependentLocality dependentLocality
protected PostalCode postalCode
protected java.util.List<java.lang.Object> any
protected java.lang.String underscore
protected java.lang.String usage
protected java.lang.String indicator
public Locality(PostBox postBox, LargeMailUser largeMailUser, PostOffice postOffice, PostalRoute postalRoute)
postBox - required parameterpostOffice - required parameterpostalRoute - required parameterlargeMailUser - required parameterpublic java.util.List<AddressLine> getAddressLine()
public java.util.List<Locality.LocalityName> getLocalityName()
public LargeMailUser getLargeMailUser()
LargeMailUserpublic void setLargeMailUser(LargeMailUser value)
value - allowed object is
LargeMailUserpublic PostOffice getPostOffice()
PostOfficepublic void setPostOffice(PostOffice value)
value - allowed object is
PostOfficepublic PostalRoute getPostalRoute()
PostalRoutepublic void setPostalRoute(PostalRoute value)
value - allowed object is
PostalRoutepublic Thoroughfare getThoroughfare()
Thoroughfarepublic void setThoroughfare(Thoroughfare value)
value - allowed object is
Thoroughfarepublic DependentLocality getDependentLocality()
DependentLocalitypublic void setDependentLocality(DependentLocality value)
value - allowed object is
DependentLocalitypublic PostalCode getPostalCode()
PostalCodepublic void setPostalCode(PostalCode value)
value - allowed object is
PostalCodepublic java.util.List<java.lang.Object> getAny()
public java.lang.String getUnderscore()
Stringpublic void setUnderscore(java.lang.String value)
value - allowed object is
Stringpublic java.lang.String getUsage()
Stringpublic void setUsage(java.lang.String value)
value - allowed object is
Stringpublic java.lang.String getIndicator()
Stringpublic void setIndicator(java.lang.String value)
value - allowed object is
Stringpublic java.util.Map<javax.xml.namespace.QName,java.lang.String> getOtherAttributes()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic AddressLine createAndAddAddressLine()
AddressLine and adds it to addressLine.
This method is a short version for:
AddressLine addressLine = new AddressLine();
this.getAddressLine().add(addressLine); public Locality.LocalityName createAndAddLocalityName()
Locality.LocalityName and adds it to localityName.
This method is a short version for:
LocalityName localityName = new LocalityName();
this.getLocalityName().add(localityName); public PostBox createAndSetPostBox(PostBox.PostBoxNumber postBoxNumber)
PostBox and set it to postBox.
This method is a short version for:
PostBox postBox = new PostBox();
this.setPostBox(postBox); postBoxNumber - required parameterpublic LargeMailUser createAndSetLargeMailUser()
LargeMailUser and set it to largeMailUser.
This method is a short version for:
LargeMailUser largeMailUser = new LargeMailUser();
this.setLargeMailUser(largeMailUser); public PostOffice createAndSetPostOffice()
PostOffice and set it to postOffice.
This method is a short version for:
PostOffice postOffice = new PostOffice();
this.setPostOffice(postOffice); public PostalRoute createAndSetPostalRoute(java.util.List<PostalRoute.PostalRouteName> postalRouteName, PostalRoute.PostalRouteNumber postalRouteNumber)
PostalRoute and set it to postalRoute.
This method is a short version for:
PostalRoute postalRoute = new PostalRoute();
this.setPostalRoute(postalRoute); postalRouteName - required parameterpostalRouteNumber - required parameterpublic Thoroughfare createAndSetThoroughfare(DependentLocality dependentLocality, Premise premise, Firm firm, PostalCode postalCode)
Thoroughfare and set it to thoroughfare.
This method is a short version for:
Thoroughfare thoroughfare = new Thoroughfare();
this.setThoroughfare(thoroughfare); postalCode - required parameterpremise - required parameterfirm - required parameterdependentLocality - required parameterpublic Premise createAndSetPremise(Premise.PremiseLocation premiseLocation, java.util.List<PremiseNumber> premiseNumber, Premise.PremiseNumberRange premiseNumberRange)
Premise and set it to premise.
This method is a short version for:
Premise premise = new Premise();
this.setPremise(premise); premiseNumber - required parameterpremiseNumberRange - required parameterpremiseLocation - required parameterpublic DependentLocality createAndSetDependentLocality(PostBox postBox, LargeMailUser largeMailUser, PostOffice postOffice, PostalRoute postalRoute)
DependentLocality and set it to dependentLocality.
This method is a short version for:
DependentLocality dependentLocality = new DependentLocality();
this.setDependentLocality(dependentLocality); postBox - required parameterpostOffice - required parameterpostalRoute - required parameterlargeMailUser - required parameterpublic PostalCode createAndSetPostalCode()
PostalCode and set it to postalCode.
This method is a short version for:
PostalCode postalCode = new PostalCode();
this.setPostalCode(postalCode); public void setAddressLine(java.util.List<AddressLine> addressLine)
Note:
This method does not make use of the fluent pattern.If you would like to make it fluent, use withAddressLine(java.util.List<de.micromata.opengis.kml.v_2_2_0.xal.AddressLine>) instead.
addressLine - public Locality addToAddressLine(AddressLine addressLine)
addressLine - Objects of the following type are allowed in the list: AddressLinepublic void setLocalityName(java.util.List<Locality.LocalityName> localityName)
Note:
This method does not make use of the fluent pattern.If you would like to make it fluent, use withLocalityName(java.util.List<de.micromata.opengis.kml.v_2_2_0.xal.Locality.LocalityName>) instead.
localityName - public Locality addToLocalityName(Locality.LocalityName localityName)
localityName - Objects of the following type are allowed in the list: Locality.LocalityNamepublic void setAny(java.util.List<java.lang.Object> any)
any - public Locality addToAny(java.lang.Object any)
any - Objects of the following type are allowed in the list: Objectpublic Locality withAddressLine(java.util.List<AddressLine> addressLine)
addressLine - required parameter#setAddressLine(List) public Locality withLocalityName(java.util.List<Locality.LocalityName> localityName)
localityName - required parameter#setLocalityName(List) public Locality withThoroughfare(Thoroughfare thoroughfare)
thoroughfare - required parametersetThoroughfare(Thoroughfare)public Locality withPremise(Premise premise)
premise - required parametersetPremise(Premise)public Locality withDependentLocality(DependentLocality dependentLocality)
dependentLocality - required parametersetDependentLocality(DependentLocality)public Locality withPostalCode(PostalCode postalCode)
postalCode - required parametersetPostalCode(PostalCode)public Locality withAny(java.util.List<java.lang.Object> any)
any - required parameter#setAny(Listpublic Locality withUnderscore(java.lang.String underscore)
underscore - required parametersetUnderscore(String)public Locality withUsage(java.lang.String usage)
usage - required parametersetUsage(String)public Locality withIndicator(java.lang.String indicator)
indicator - required parametersetIndicator(String)public Locality clone()
clone in class java.lang.ObjectCopyright © 2014 Micromata GmbH. All Rights Reserved.