public static class PostalAddress.Builder extends Object implements IBuilder, Serializable
IBuilder
,
Serialized FormConstructor and Description |
---|
Builder()
Empty constructor
|
Builder(PostalAddress address)
Constructor which starts from an existing component.
|
Modifier and Type | Method and Description |
---|---|
PostalAddress |
commit()
Finalizes the data gathered for this builder instance.
|
protected ITspiAddress |
commitSelectedAddress()
Commits the address which is active in this builder, based on the addressType.
|
String |
getAddressType()
Builder accessor for the addressType
|
String |
getCity()
Builder accessor for the city
|
CountryCode.Builder |
getCountryCode()
Builder accessor for the countryCode
|
GeneralAddressClass.Builder |
getGeneralAddressClass()
Builder accessor for the generalAddressClass
|
IntersectionAddress.Builder |
getIntersectionAddress()
Builder accessor for the intersectionAddress
|
LandmarkAddress.Builder |
getLandmarkAddress()
Builder accessor for the landmarkAddress
|
NumberedThoroughfareAddress.Builder |
getNumberedThoroughfareAddress()
Builder accessor for the numberedThoroughfareAddress
|
String |
getPostalCode()
Builder accessor for the postalCode
|
String |
getProvince()
Builder accessor for the province
|
String |
getState()
Builder accessor for the state
|
List<String> |
getStreets()
Builder accessor for the streets
|
TwoNumberAddressRange.Builder |
getTwoNumberAddressRange()
Builder accessor for the twoNumberAddressRange
|
UnnumberedThoroughfareAddress.Builder |
getUnnumberedThoroughfareAddress()
Builder accessor for the unnumberedThoroughfareAddress
|
USPSGeneralDeliveryOffice.Builder |
getUSPSGeneralDeliveryOffice()
Builder accessor for the uspsGeneralDeliveryOffice
|
USPSPostalDeliveryBox.Builder |
getUSPSPostalDeliveryBox()
Builder accessor for the uspsPostalDeliveryBox
|
USPSPostalDeliveryRoute.Builder |
getUSPSPostalDeliveryRoute()
Builder accessor for the uspsPostalDeliveryRoute
|
boolean |
isEmpty()
Checks if any values have been provided for this Builder.
|
void |
setAddressType(String addressType)
Builder accessor for the addressType
|
void |
setCity(String city)
Builder accessor for the city
|
void |
setCountryCode(CountryCode.Builder countryCode)
Builder accessor for the countryCode
|
void |
setGeneralAddressClass(GeneralAddressClass.Builder generalAddressClass)
Builder accessor for the generalAddressClass
|
void |
setIntersectionAddress(IntersectionAddress.Builder intersectionAddress)
Builder accessor for the intersectionAddress
|
void |
setLandmarkAddress(LandmarkAddress.Builder landmarkAddress)
Builder accessor for the landmarkAddress
|
void |
setNumberedThoroughfareAddress(NumberedThoroughfareAddress.Builder numberedThoroughfareAddress)
Builder accessor for the numberedThoroughfareAddress
|
void |
setPostalCode(String postalCode)
Builder accessor for the postalCode
|
void |
setProvince(String province)
Builder accessor for the province
|
void |
setState(String state)
Builder accessor for the state
|
void |
setStreets(List<String> streets)
Builder accessor for the streets
|
void |
setTwoNumberAddressRange(TwoNumberAddressRange.Builder twoNumberAddressRange)
Builder accessor for the twoNumberAddressRange
|
void |
setUnnumberedThoroughfareAddress(UnnumberedThoroughfareAddress.Builder unnumberedThoroughfareAddress)
Builder accessor for the unnumberedThoroughfareAddress
|
void |
setUSPSGeneralDeliveryOffice(USPSGeneralDeliveryOffice.Builder uspsGeneralDeliveryOffice)
Builder accessor for the uspsGeneralDeliveryOffice
|
void |
setUSPSPostalDeliveryBox(USPSPostalDeliveryBox.Builder uspsPostalDeliveryBox)
Builder accessor for the uspsPostalDeliveryBox
|
void |
setUSPSPostalDeliveryRoute(USPSPostalDeliveryRoute.Builder uspsPostalDeliveryRoute)
Builder accessor for the uspsPostalDeliveryRoute
|
public Builder()
public Builder(PostalAddress address)
public PostalAddress commit() throws InvalidDDMSException
IBuilder
commit
in interface IBuilder
InvalidDDMSException
- if any required information is missing or malformedIBuilder.commit()
protected ITspiAddress commitSelectedAddress() throws InvalidDDMSException
InvalidDDMSException
public boolean isEmpty()
IBuilder
isEmpty
in interface IBuilder
IBuilder.isEmpty()
public List<String> getStreets()
public void setStreets(List<String> streets)
public String getCity()
public void setCity(String city)
public String getState()
public void setState(String state)
public String getProvince()
public void setProvince(String province)
public String getPostalCode()
public void setPostalCode(String postalCode)
public CountryCode.Builder getCountryCode()
public void setCountryCode(CountryCode.Builder countryCode)
public String getAddressType()
public void setAddressType(String addressType)
public GeneralAddressClass.Builder getGeneralAddressClass()
public void setGeneralAddressClass(GeneralAddressClass.Builder generalAddressClass)
public IntersectionAddress.Builder getIntersectionAddress()
public void setIntersectionAddress(IntersectionAddress.Builder intersectionAddress)
public LandmarkAddress.Builder getLandmarkAddress()
public void setLandmarkAddress(LandmarkAddress.Builder landmarkAddress)
public NumberedThoroughfareAddress.Builder getNumberedThoroughfareAddress()
public void setNumberedThoroughfareAddress(NumberedThoroughfareAddress.Builder numberedThoroughfareAddress)
public TwoNumberAddressRange.Builder getTwoNumberAddressRange()
public void setTwoNumberAddressRange(TwoNumberAddressRange.Builder twoNumberAddressRange)
public UnnumberedThoroughfareAddress.Builder getUnnumberedThoroughfareAddress()
public void setUnnumberedThoroughfareAddress(UnnumberedThoroughfareAddress.Builder unnumberedThoroughfareAddress)
public USPSGeneralDeliveryOffice.Builder getUSPSGeneralDeliveryOffice()
public void setUSPSGeneralDeliveryOffice(USPSGeneralDeliveryOffice.Builder uspsGeneralDeliveryOffice)
public USPSPostalDeliveryBox.Builder getUSPSPostalDeliveryBox()
public void setUSPSPostalDeliveryBox(USPSPostalDeliveryBox.Builder uspsPostalDeliveryBox)
public USPSPostalDeliveryRoute.Builder getUSPSPostalDeliveryRoute()
public void setUSPSPostalDeliveryRoute(USPSPostalDeliveryRoute.Builder uspsPostalDeliveryRoute)
Copyright 2010 - 2019 by Brian Uri!
Generated on 09/15/2016 12:36 PM
https://ddmsence.urizone.net/