|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.esri.adf.web.aws.data.AWSGeocodeFunctionality
| Field Summary | |
protected java.util.HashMap |
address
|
protected java.util.HashMap |
aliases
|
static java.lang.String |
CITY
|
static java.lang.String |
COUNTRY
|
static java.lang.String |
DESC1
|
static java.lang.String |
DESC2
|
static java.lang.String |
HOUSE_NUMBER
|
static java.lang.String |
INTERSECTION
|
static java.lang.String |
IP_ADDRESS
|
static java.lang.String |
MATCH_SCORE
|
static java.lang.String |
MATCH_TYPE
|
static java.lang.String |
PHONE_NUMBER
|
static java.lang.String |
PLACE
|
static java.lang.String |
POSTAL_CODE
|
static java.lang.String |
STATEPROVINCE
|
static java.lang.String |
STREET
|
| Fields inherited from interface com.esri.adf.web.data.GeocodeFunctionality |
FUNCTIONALITY_NAME |
| Constructor Summary | |
AWSGeocodeFunctionality()
|
|
| Method Summary | |
void |
destroyFunctionality()
The cleanup chores (such as releasing held resources) for the functionality must be performed in this method. |
java.util.List |
findAddressCandidates()
Returns a List of AddressCandidates matching the current set of address field values. |
AddressCandidate |
geocodeAddress()
Geocodes a single address based on the current set of address field values. |
java.lang.String |
getAddressFieldAlias(java.lang.String fieldName)
Returns an alias for the given address field. |
java.lang.String[] |
getAddressFields()
Returns an array of address fields for this geocoder. |
java.lang.String |
getAddressFieldValue(java.lang.String fieldName)
Returns the value for a given address field. |
GISResource |
getResource()
Returns the GISResource associated with this functionality. |
void |
initFunctionality(GISResource resource)
The initialization chores for the functionality must be performed in this method. |
AddressCandidate |
reverseGeocode(WebPoint wPoint)
|
void |
setAddressFieldValue(java.lang.String fieldName,
java.lang.String value)
Sets the value for a given address field. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.util.HashMap aliases
protected java.util.HashMap address
public static final java.lang.String HOUSE_NUMBER
public static final java.lang.String STREET
public static final java.lang.String INTERSECTION
public static final java.lang.String CITY
public static final java.lang.String STATEPROVINCE
public static final java.lang.String COUNTRY
public static final java.lang.String POSTAL_CODE
public static final java.lang.String IP_ADDRESS
public static final java.lang.String PHONE_NUMBER
public static final java.lang.String DESC1
public static final java.lang.String DESC2
public static final java.lang.String MATCH_TYPE
public static final java.lang.String MATCH_SCORE
public static final java.lang.String PLACE
| Constructor Detail |
public AWSGeocodeFunctionality()
| Method Detail |
public void initFunctionality(GISResource resource)
GISFunctionality
The initialization chores for the functionality must be performed in this method. This method is called by the
resource when the functionality needs to be initialized. This happens either when the resource
itself is being initialized or if users add this functionality to the resource using the
GISResource.addFunctionality(String, GISFunctionality) method after the resource has already
been initialized.
Classes which implement this method should maintain the resource as a class instance variable and
return the same in the GISFunctionality.getResource() method. The functionality is ready for use only after this method has
been called.
initFunctionality in interface GISFunctionalityresource - the GISResource that this functionality supportsGISResource.init(WebContext)public void destroyFunctionality()
GISFunctionality
The cleanup chores (such as releasing held resources) for the functionality must be performed in this method. This
method is called by the GISResource when the resource itself is being destroyed.
The functionality is no longer usable after this method has been called.
destroyFunctionality in interface GISFunctionalityGISResource.destroy()public GISResource getResource()
GISFunctionality
Returns the GISResource associated with this functionality.
The resource passed to GISFunctionality.initFunctionality(GISResource) is maintained as a class variable and is accessible
through this method.
getResource in interface GISFunctionalityGISResource associated with this functionalitypublic java.lang.String[] getAddressFields()
GeocodeFunctionalityReturns an array of address fields for this geocoder.
The GeocodeTask dynamically generates input text box for each address field.
getAddressFields in interface GeocodeFunctionalityString array of address fields for this geocoder
public void setAddressFieldValue(java.lang.String fieldName,
java.lang.String value)
GeocodeFunctionalitySets the value for a given address field.
setAddressFieldValue in interface GeocodeFunctionalityfieldName - the address field for which the value is to be setvalue - the value for the given address fieldpublic java.lang.String getAddressFieldValue(java.lang.String fieldName)
GeocodeFunctionalityReturns the value for a given address field.
getAddressFieldValue in interface GeocodeFunctionalityfieldName - the address field for which the value is to be returned
public java.lang.String getAddressFieldAlias(java.lang.String fieldName)
GeocodeFunctionalityReturns an alias for the given address field.
The GeocodeTask labels the input text box for the address field with this alias.
getAddressFieldAlias in interface GeocodeFunctionalityfieldName - the address field for which the alias is to be returned
public AddressCandidate geocodeAddress()
GeocodeFunctionalityGeocodes a single address based on the current set of address field values.
Different implementations can have different criteria for geocoding the address. Such criterion can be specified
and configured in the implementation itself. The GeocodeTask itself is agnostic of
such implementation specific criteria as it simply makes this call to get the geocoded address.
geocodeAddress in interface GeocodeFunctionalitypublic java.util.List findAddressCandidates()
GeocodeFunctionality
Returns a List of AddressCandidates matching the current set of address field values.
Different implementations can have different criteria for matching the address candidates. Such criterion can be
specified and configured in the implementation itself. The GeocodeTask itself is
agnostic of such implementation specific criteria as it simply makes this call to find the matching address
candidates.
findAddressCandidates in interface GeocodeFunctionalityList of AddressCandidates matching the current set of address field valuespublic AddressCandidate reverseGeocode(WebPoint wPoint)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||