public final class Address extends Property
Modifier and Type | Class and Description |
---|---|
static class |
Address.Factory |
Property.Id
ILLEGAL_PARAMETER_MESSAGE
Constructor and Description |
---|
Address(Group group,
java.util.List<Parameter> params,
java.lang.String value)
Factory constructor.
|
Address(Group group,
java.lang.String poBox,
java.lang.String extended,
java.lang.String street,
java.lang.String locality,
java.lang.String region,
java.lang.String postcode,
java.lang.String country,
Type... types) |
Address(java.util.List<Parameter> params,
java.lang.String value) |
Address(java.lang.String poBox,
java.lang.String extended,
java.lang.String street,
java.lang.String locality,
java.lang.String region,
java.lang.String postcode,
java.lang.String country,
Type... types) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCountry() |
java.lang.String |
getExtended() |
java.lang.String |
getLocality() |
java.lang.String |
getPoBox() |
java.lang.String |
getPostcode() |
java.lang.String |
getRegion() |
java.lang.String |
getStreet() |
java.lang.String |
getValue() |
void |
validate() |
assertOneOrLess, assertParametersEmpty, assertPidParameter, assertPrefParameter, assertTextParameter, assertTypeParameter, equals, getExtendedParameter, getExtendedParameters, getGroup, getId, getParameter, getParameters, getParameters, hashCode, toString
public Address(java.lang.String poBox, java.lang.String extended, java.lang.String street, java.lang.String locality, java.lang.String region, java.lang.String postcode, java.lang.String country, Type... types)
poBox
- post office box address componentextended
- extended address componentstreet
- street address componentlocality
- locality address componentregion
- region address componentpostcode
- postal code address componentcountry
- country address componenttypes
- optional address typespublic Address(Group group, java.lang.String poBox, java.lang.String extended, java.lang.String street, java.lang.String locality, java.lang.String region, java.lang.String postcode, java.lang.String country, Type... types)
group
- property grouppoBox
- post office box address componentextended
- extended address componentstreet
- street address componentlocality
- locality address componentregion
- region address componentpostcode
- postal code address componentcountry
- country address componenttypes
- optional address typespublic Address(java.util.List<Parameter> params, java.lang.String value) throws java.text.ParseException
params
- property parametersvalue
- string representation of an address valuejava.text.ParseException
public java.lang.String getPoBox()
public java.lang.String getExtended()
public java.lang.String getStreet()
public java.lang.String getLocality()
public java.lang.String getRegion()
public java.lang.String getPostcode()
public java.lang.String getCountry()
public java.lang.String getValue()