|
Oracle Application Server Wireless Java API Reference B10400-01 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface represents a format of an address in a given country. In each country, addresses might have a different set of components. US addresses have states, while Chinese addresses have provinces. Furthermore, in each country addresses have a different syntax. The first line in a US address has the format "HouseNumber StreetName". In a German address, however, the format is "StreetName HouseNumber".
Method Summary | |
java.util.Iterator |
getAddressLines() This function will return a String representation of the address format. |
java.util.Iterator |
getComponentNames() This function will return an Iterator of component names contained in the address format (for example {"house", "street", "city", "state", "postal code", "country"}). |
java.lang.String |
getFormatName() |
java.lang.String |
lookupAlias(java.lang.String alias) |
boolean |
usesComponentName(java.lang.String componentName) This function will return whether a given component name is contained in the address format (for example "state" is contained in the US address format). |
Method Detail |
public java.lang.String getFormatName()
public java.util.Iterator getComponentNames()
public boolean usesComponentName(java.lang.String componentName)
public java.util.Iterator getAddressLines()
public java.lang.String lookupAlias(java.lang.String alias)
|
Oracle Application Server Wireless Java API Reference B10400-01 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |