|
Oracle Application Server Wireless Java API Reference B14043-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface represents an international address. Each address has a number of components, such as "country", "state", "street", ... with a String value. The components vary for different countries.
Method Summary | |
java.util.Iterator |
getAddressLines(boolean confirmationNecessary, boolean markUnconfirmedComponents) This function will return a String representation of the address. |
java.util.Iterator |
getComponentNames() This function will return an Iterator of component names contained in the address (for example {"house", "street", "city", "state", "postal code", "country"}). |
java.lang.String |
getComponentValue(java.lang.String componentName, boolean confirmationNecessary) This function returns the component value for a given component (for example value "US" for component "country"). |
void |
setComponentValue(java.lang.String componentName, java.lang.String componentValue, boolean confirmed) This function sets the component value for a given component (for example value "US" for component "country"). |
java.lang.String |
toString() This function will return a String representation of the address. |
java.lang.String |
toString(boolean confirmationNecessary, boolean markUnconfirmedComponents) This function will return a String representation of the address. |
Methods inherited from interface oracle.panama.model.Location |
geocode, getAddressLastLine, getAddressLine1, getAddressLine2, getBlock, getCity, getCompanyName, getCountry, getCounty, getGeocodeProvider, getMatchMode, getPostalCode, getPostalCodeExt, getState, setAddressLastLine, setAddressLine1, setAddressLine2, setBlock, setCity, setCompanyName, setCountry, setCounty, setGeocodeProvider, setMatchMode, setPostalCode, setPostalCodeExt, setState |
Methods inherited from interface oracle.panama.model.Point |
getDistance, getLabel, getLatitude, getLongitude, getPositionProvider, getRadius, setLabel, setLatitude, setLongitude, setPositionProvider, setRadius |
Method Detail |
public java.util.Iterator getAddressLines(boolean confirmationNecessary, boolean markUnconfirmedComponents)
confirmationNecessary
- A boolean specifying whether only confirmed component values should be included. If so, either "Oracle Dr" or "(...)" would be used, but never "Oracleeeeeeeeee Dr".markUnconfirmedComponents
- A boolean specifying whether unconfirmed components should be marked as such. This parameter is irrelevant if only confirmed components are included.public java.util.Iterator getComponentNames()
public java.lang.String getComponentValue(java.lang.String componentName, boolean confirmationNecessary)
componentName
- a String representing the component name, such as "city"confirmationNecessary
- A boolean specifying whether only a confirmed component value should be returned. If so, either "Oracle Dr" or null would be returned, but never "Oracleeeeeeeeee Dr".public void setComponentValue(java.lang.String componentName, java.lang.String componentValue, boolean confirmed)
componentName
- a String representing the component name, such as "city"confirmed
- A boolean specifying whether the component value is confirmed, thus "trustworthy." The developer should be careful when setting the parameter to true. Any value manually entered by a user generally is not "trustworthy" enough. There is, however, no strict standard to define "trustworthy." If a single unconfirmed value is set, the whole address becomes unconfirmed.public java.lang.String toString()
public java.lang.String toString(boolean confirmationNecessary, boolean markUnconfirmedComponents)
confirmationNecessary
- A boolean specifying whether only confirmed component values should be included. If so, either "Oracle Dr" or "(...)" would be used, but never "Oracleeeeeeeeee Dr".markUnconfirmedComponents
- A boolean specifying whether unconfirmed components should be marked as such. This parameter is irrelevant if only confirmed components are included.
|
Oracle Application Server Wireless Java API Reference B14043-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |