Enum AddressComponentType
java.lang.Object
java.lang.Enum<AddressComponentType>
com.onenetwork.platform.common.address.AddressComponentType
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AddressComponentType>
,java.lang.constant.Constable
public enum AddressComponentType extends java.lang.Enum<AddressComponentType>
Enumeration of types of components which can go into an
Address
.
The CountryImpl
drives the list of available AddressComponentType
for an Address.-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description ADDRESS_ENT
Addresses can be used to represent "temporary" enterprises, orgs and sites.ADDRESS_ORG
Addresses can be used to represent "temporary" enterprises, orgs and sites.ADDRESS_SITE
Addresses can be used to represent "temporary" enterprises, orgs and sites.CITY
CityCOUNTRY
CountryCOUNTY
CountyLATITUDE
LatitudeLONGITUDE
LongitudePO_BOX
Post Office BoxPOSTAL_CODE
Postal CodePREFECTURE
PrefecturePROVINCE
ProvinceSTATE
StateSTREET_1
First line of the "Street" portion of the AddressSTREET_2
Second line of the "Street" portion of the AddressSTREET_3
Third line of the "Street" portion of the AddressSUB_CITY
Sub-city is relevant for large cities, e.g.TIME_ZONE
Addresses can be used to represent "temporary" enterprises, orgs and sites.WARD
WardZIP
U.S. -
Method Summary
Modifier and Type Method Description static AddressComponentType
fromValue(java.lang.String v)
Returns an AddressCompnentType matching the given string valuejava.lang.String
toString()
java.lang.String
value()
Returns a string representation of the enumeration value.static AddressComponentType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AddressComponentType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CITY
City -
STATE
State -
STREET_1
First line of the "Street" portion of the Address -
STREET_2
Second line of the "Street" portion of the Address -
STREET_3
Third line of the "Street" portion of the Address -
PO_BOX
Post Office Box -
ZIP
U.S. Zip Code -
COUNTRY
Country -
COUNTY
County -
WARD
Ward -
PREFECTURE
Prefecture -
ADDRESS_ENT
Addresses can be used to represent "temporary" enterprises, orgs and sites. ADDRESS_ENT refers to the Enterprise portion of such a temporary entity. -
ADDRESS_ORG
Addresses can be used to represent "temporary" enterprises, orgs and sites. ADDRESS_ORG refers to the Organization portion of such a temporary entity. -
ADDRESS_SITE
Addresses can be used to represent "temporary" enterprises, orgs and sites. ADDRESS_SITE refers to the Site portion of such a temporary entity. -
PROVINCE
Province -
POSTAL_CODE
Postal Code -
LONGITUDE
Longitude -
LATITUDE
Latitude -
TIME_ZONE
Addresses can be used to represent "temporary" enterprises, orgs and sites. TIME_ZONE refers to the timezone of a temporary Site. -
SUB_CITY
Sub-city is relevant for large cities, e.g. in China
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
value
public java.lang.String value()Returns a string representation of the enumeration value. -
fromValue
Returns an AddressCompnentType matching the given string value- Parameters:
v
- string value, as pervalue()
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Enum<AddressComponentType>
-