de.micromata.opengis.kml.v_2_2_0.xal
Class Locality

java.lang.Object
  extended by de.micromata.opengis.kml.v_2_2_0.xal.Locality
All Implemented Interfaces:
java.lang.Cloneable

public class Locality
extends java.lang.Object
implements java.lang.Cloneable


Nested Class Summary
static class Locality.LocalityName
           
 
Field Summary
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 Summary
Locality(PostBox postBox, LargeMailUser largeMailUser, PostOffice postOffice, PostalRoute postalRoute)
          Value constructor with only mandatory fields
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

addressLine

protected java.util.List<AddressLine> addressLine

localityName

protected java.util.List<Locality.LocalityName> localityName

postBox

protected PostBox postBox

largeMailUser

protected LargeMailUser largeMailUser

postOffice

protected PostOffice postOffice

postalRoute

protected PostalRoute postalRoute

thoroughfare

protected Thoroughfare thoroughfare

premise

protected Premise premise

dependentLocality

protected DependentLocality dependentLocality

postalCode

protected PostalCode postalCode

any

protected java.util.List<java.lang.Object> any

underscore

protected java.lang.String underscore

usage

protected java.lang.String usage

indicator

protected java.lang.String indicator
Constructor Detail

Locality

public Locality(PostBox postBox,
                LargeMailUser largeMailUser,
                PostOffice postOffice,
                PostalRoute postalRoute)
Value constructor with only mandatory fields

Parameters:
postOffice - required parameter
largeMailUser - required parameter
postalRoute - required parameter
postBox - required parameter
Method Detail

getAddressLine

public java.util.List<AddressLine> getAddressLine()

getLocalityName

public java.util.List<Locality.LocalityName> getLocalityName()

getPostBox

public PostBox getPostBox()
Returns:
possible object is PostBox

setPostBox

public void setPostBox(PostBox value)
Parameters:
value - allowed object is PostBox

getLargeMailUser

public LargeMailUser getLargeMailUser()
Returns:
possible object is LargeMailUser

setLargeMailUser

public void setLargeMailUser(LargeMailUser value)
Parameters:
value - allowed object is LargeMailUser

getPostOffice

public PostOffice getPostOffice()
Returns:
possible object is PostOffice

setPostOffice

public void setPostOffice(PostOffice value)
Parameters:
value - allowed object is PostOffice

getPostalRoute

public PostalRoute getPostalRoute()
Returns:
possible object is PostalRoute

setPostalRoute

public void setPostalRoute(PostalRoute value)
Parameters:
value - allowed object is PostalRoute

getThoroughfare

public Thoroughfare getThoroughfare()
Returns:
possible object is Thoroughfare

setThoroughfare

public void setThoroughfare(Thoroughfare value)
Parameters:
value - allowed object is Thoroughfare

getPremise

public Premise getPremise()
Returns:
possible object is Premise

setPremise

public void setPremise(Premise value)
Parameters:
value - allowed object is Premise

getDependentLocality

public DependentLocality getDependentLocality()
Returns:
possible object is DependentLocality

setDependentLocality

public void setDependentLocality(DependentLocality value)
Parameters:
value - allowed object is DependentLocality

getPostalCode

public PostalCode getPostalCode()
Returns:
possible object is PostalCode

setPostalCode

public void setPostalCode(PostalCode value)
Parameters:
value - allowed object is PostalCode

getAny

public java.util.List<java.lang.Object> getAny()

getUnderscore

public java.lang.String getUnderscore()
Returns:
possible object is String

setUnderscore

public void setUnderscore(java.lang.String value)
Parameters:
value - allowed object is String

getUsage

public java.lang.String getUsage()
Returns:
possible object is String

setUsage

public void setUsage(java.lang.String value)
Parameters:
value - allowed object is String

getIndicator

public java.lang.String getIndicator()
Returns:
possible object is String

setIndicator

public void setIndicator(java.lang.String value)
Parameters:
value - allowed object is String

getOtherAttributes

public java.util.Map<javax.xml.namespace.QName,java.lang.String> getOtherAttributes()
Returns:
always non-null

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

createAndAddAddressLine

public AddressLine createAndAddAddressLine()
Creates a new instance of AddressLine and adds it to addressLine. This method is a short version for: AddressLine addressLine = new AddressLine(); this.getAddressLine().add(addressLine);


createAndAddLocalityName

public Locality.LocalityName createAndAddLocalityName()
Creates a new instance of Locality.LocalityName and adds it to localityName. This method is a short version for: LocalityName localityName = new LocalityName(); this.getLocalityName().add(localityName);


createAndSetPostBox

public PostBox createAndSetPostBox(PostBox.PostBoxNumber postBoxNumber)
Creates a new instance of PostBox and set it to postBox. This method is a short version for: PostBox postBox = new PostBox(); this.setPostBox(postBox);

Parameters:
postBoxNumber - required parameter

createAndSetLargeMailUser

public LargeMailUser createAndSetLargeMailUser()
Creates a new instance of LargeMailUser and set it to largeMailUser. This method is a short version for: LargeMailUser largeMailUser = new LargeMailUser(); this.setLargeMailUser(largeMailUser);


createAndSetPostOffice

public PostOffice createAndSetPostOffice()
Creates a new instance of PostOffice and set it to postOffice. This method is a short version for: PostOffice postOffice = new PostOffice(); this.setPostOffice(postOffice);


createAndSetPostalRoute

public PostalRoute createAndSetPostalRoute(java.util.List<PostalRoute.PostalRouteName> postalRouteName,
                                           PostalRoute.PostalRouteNumber postalRouteNumber)
Creates a new instance of PostalRoute and set it to postalRoute. This method is a short version for: PostalRoute postalRoute = new PostalRoute(); this.setPostalRoute(postalRoute);

Parameters:
postalRouteName - required parameter
postalRouteNumber - required parameter

createAndSetThoroughfare

public Thoroughfare createAndSetThoroughfare(DependentLocality dependentLocality,
                                             Premise premise,
                                             Firm firm,
                                             PostalCode postalCode)
Creates a new instance of Thoroughfare and set it to thoroughfare. This method is a short version for: Thoroughfare thoroughfare = new Thoroughfare(); this.setThoroughfare(thoroughfare);

Parameters:
postalCode - required parameter
dependentLocality - required parameter
premise - required parameter
firm - required parameter

createAndSetPremise

public Premise createAndSetPremise(Premise.PremiseLocation premiseLocation,
                                   java.util.List<PremiseNumber> premiseNumber,
                                   Premise.PremiseNumberRange premiseNumberRange)
Creates a new instance of Premise and set it to premise. This method is a short version for: Premise premise = new Premise(); this.setPremise(premise);

Parameters:
premiseNumberRange - required parameter
premiseLocation - required parameter
premiseNumber - required parameter

createAndSetDependentLocality

public DependentLocality createAndSetDependentLocality(PostBox postBox,
                                                       LargeMailUser largeMailUser,
                                                       PostOffice postOffice,
                                                       PostalRoute postalRoute)
Creates a new instance of DependentLocality and set it to dependentLocality. This method is a short version for: DependentLocality dependentLocality = new DependentLocality(); this.setDependentLocality(dependentLocality);

Parameters:
postOffice - required parameter
largeMailUser - required parameter
postalRoute - required parameter
postBox - required parameter

createAndSetPostalCode

public PostalCode createAndSetPostalCode()
Creates a new instance of PostalCode and set it to postalCode. This method is a short version for: PostalCode postalCode = new PostalCode(); this.setPostalCode(postalCode);


setAddressLine

public 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.

Note:

This method does not make use of the fluent pattern.If you would like to make it fluent, use withAddressLine(java.util.List) instead.

Parameters:
addressLine -

addToAddressLine

public Locality addToAddressLine(AddressLine addressLine)
add a value to the addressLine property collection

Parameters:
addressLine - Objects of the following type are allowed in the list: AddressLine
Returns:
true (as general contract of Collection.add).

setLocalityName

public 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.

Note:

This method does not make use of the fluent pattern.If you would like to make it fluent, use withLocalityName(java.util.List) instead.

Parameters:
localityName -

addToLocalityName

public Locality addToLocalityName(Locality.LocalityName localityName)
add a value to the localityName property collection

Parameters:
localityName - Objects of the following type are allowed in the list: Locality.LocalityName
Returns:
true (as general contract of Collection.add).

setAny

public 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.

Note:

This method does not make use of the fluent pattern.If you would like to make it fluent, use withAny(java.util.List) instead.

Parameters:
any -

addToAny

public Locality addToAny(java.lang.Object any)
add a value to the any property collection

Parameters:
any - Objects of the following type are allowed in the list: Object
Returns:
true (as general contract of Collection.add).

withAddressLine

public Locality withAddressLine(java.util.List<AddressLine> addressLine)
fluent setter

Parameters:
addressLine - required parameter
See Also:
#setAddressLine(List)

withLocalityName

public Locality withLocalityName(java.util.List<Locality.LocalityName> localityName)
fluent setter

Parameters:
localityName - required parameter
See Also:
#setLocalityName(List)

withThoroughfare

public Locality withThoroughfare(Thoroughfare thoroughfare)
fluent setter

Parameters:
thoroughfare - required parameter
See Also:
setThoroughfare(Thoroughfare)

withPremise

public Locality withPremise(Premise premise)
fluent setter

Parameters:
premise - required parameter
See Also:
setPremise(Premise)

withDependentLocality

public Locality withDependentLocality(DependentLocality dependentLocality)
fluent setter

Parameters:
dependentLocality - required parameter
See Also:
setDependentLocality(DependentLocality)

withPostalCode

public Locality withPostalCode(PostalCode postalCode)
fluent setter

Parameters:
postalCode - required parameter
See Also:
setPostalCode(PostalCode)

withAny

public Locality withAny(java.util.List<java.lang.Object> any)
fluent setter

Parameters:
any - required parameter
See Also:
#setAny(List)

withUnderscore

public Locality withUnderscore(java.lang.String underscore)
fluent setter

Parameters:
underscore - required parameter
See Also:
setUnderscore(String)

withUsage

public Locality withUsage(java.lang.String usage)
fluent setter

Parameters:
usage - required parameter
See Also:
setUsage(String)

withIndicator

public Locality withIndicator(java.lang.String indicator)
fluent setter

Parameters:
indicator - required parameter
See Also:
setIndicator(String)

clone

public Locality clone()
Overrides:
clone in class java.lang.Object