com.esri.aims.mtier.model.map.layer.geocode
Class Result

java.lang.Object
  extended by com.esri.aims.mtier.model.map.layer.geocode.Result
All Implemented Interfaces:
Serializable

public class Result
extends Object
implements Serializable

Defines an individual Result object associated with an AddressMatchResults object. The Result object is created after a geocode process, and contains the score, value, and PointObject containing the resulting coordinates.

See Also:
Serialized Form

Constructor Summary
Result()
          Constructs an instance of a Result object.
 
Method Summary
 Point getPointObject()
          Returns the Point associated with this Result object.
 long getScore()
          Returns the geocode result score, or the level of accuracy associated with this Result object.
 String getValue()
          Returns the value associated with this Result object.
 void setPointObject(Point point)
          Sets the given Point for this Result object.
 void setScore(long value)
          Sets the geocode result score for this Result object.
 void setValue(String value)
          Sets the Result objects value from the GEOCODE response.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Result

public Result()
Constructs an instance of a Result object. Example:
Result object is created by responses from the ArcIMS Application Server.

Method Detail

setValue

public void setValue(String value)
Sets the Result objects value from the GEOCODE response. Values are set by responses from the ArcIMS Application Server.

Parameters:
value - the geocode value.
See Also:
getValue()

getValue

public String getValue()
Returns the value associated with this Result object. Example:
String value = result.getValue();

Returns:
the value as string.
See Also:
setValue(java.lang.String)

setScore

public void setScore(long value)
Sets the geocode result score for this Result object. Score gets set by response from the ArcIMS Application Server.

Parameters:
value - the geocode result score.
See Also:
getScore()

getScore

public long getScore()
Returns the geocode result score, or the level of accuracy associated with this Result object. Example:
long score = addressMatchResults.getScore();

Returns:
the geocode result score as long.
See Also:
setScore(long)

getPointObject

public Point getPointObject()
Returns the Point associated with this Result object. The Point contains x, y location values for a geocoded location. Example: Point pnt = result.getPointObject();

Returns:
PointObject
See Also:
setPointObject(com.esri.aims.mtier.model.acetate.Point)

setPointObject

public void setPointObject(Point point)
Sets the given Point for this Result object.

See Also:
getPointObject()