com.esri.core.tasks.ags.identify
Class IdentifyResult

java.lang.Object
  extended by com.esri.core.tasks.ags.identify.IdentifyResult
All Implemented Interfaces:
Serializable

public class IdentifyResult
extends Object
implements Serializable

When the IdentifyTask class performs the identify operation and receives the result for an ArcGIS Server instance, it will only partially decode the results returned. It is the IdentifyResult class that will fully decode the results to make them usable in your application code.
Each feature that is identified will take one position in the array (2 features will be found in positions [0] and [1] of the array returned).

For each feature that is returned in the result, you will be able to obtain the following information:

  • the layer ID of the layer that contains the feature that was identified
  • the layer name of the layer that contains the feature that was identified
  • a display field (also called an attribute) name for the identified feature
  • a value for the display field of the identified feature
  • a HashMap of pairs for the identified feature

  • When working with the ArcGIS API for Android, you should never have the need to instantiate this class. It will always be an object that is returned back to you and you will work with the various methods to obtain the information as needed by your application.

    Since:
    1.0
    See Also:
    Serialized Form

    Method Summary
     boolean equals(Object obj)
               
     Map<String,Object> getAttributes()
              Returns the map of attributes for the identified feature.
     String getDisplayFieldName()
              Returns the display field (also called an attribute) name for the identified feature.
     Geometry getGeometry()
              Returns the geometry of the identified feature.
     int getLayerId()
              Returns the layer ID of the layer that contains the identified feature.
     String getLayerName()
              Returns the layer Name of the layer that contains the identified feature.
     Object getValue()
              Returns the value of the display field name for the identified feature.
     int hashCode()
               
     
    Methods inherited from class java.lang.Object
    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
     

    Method Detail

    getGeometry

    public Geometry getGeometry()
    Returns the geometry of the identified feature.

    Returns:
    the geometry of the identified feature.
    Since:
    1.0

    getLayerId

    public int getLayerId()
    Returns the layer ID of the layer that contains the identified feature.

    Returns:
    the layer ID of the layer that contains the identified feature.
    Since:
    1.0

    getLayerName

    public String getLayerName()
    Returns the layer Name of the layer that contains the identified feature.

    Returns:
    the layer Name of the layer that contains the identified feature.
    Since:
    1.0

    getValue

    public Object getValue()
    Returns the value of the display field name for the identified feature.

    Returns:
    the value of the display field name for the identified feature.
    Since:
    1.0

    getDisplayFieldName

    public String getDisplayFieldName()
    Returns the display field (also called an attribute) name for the identified feature.

    Returns:
    the display field name for the identified feature.

    getAttributes

    public Map<String,Object> getAttributes()
    Returns the map of attributes for the identified feature.

    Returns:
    the map of attributes for the identified feature.
    Since:
    1.0

    hashCode

    public int hashCode()
    Overrides:
    hashCode in class Object

    equals

    public boolean equals(Object obj)
    Overrides:
    equals in class Object


    Copyright © 2012. All Rights Reserved.