public class

IdentifyResult

extends Object
implements Serializable
java.lang.Object
   ↳ com.esri.core.tasks.identify.IdentifyResult

Class Overview

The IdentifyResult class is used to hold the results of an identify operation in a structured way for further use in your application.

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 Map of pairs for the identified feature

  • When working with the API, 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.

    Summary

    Public Methods
    boolean equals(Object obj)
    static IdentifyResult fromJson(JsonParser parser)
    For internal use only
    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()
    String toString()
    Returns string representation of the class.
    [Expand]
    Inherited Methods
    From class java.lang.Object

    Public Methods

    public boolean equals (Object obj)

    Parameters
    obj Object
    Returns
    boolean

    public static IdentifyResult fromJson (JsonParser parser)

    For internal use only

    Parameters
    parser JsonParser
    Returns
    IdentifyResult
    Throws
    Exception

    public Map<String, Object> getAttributes ()

    Returns the map of attributes for the identified feature.

    Returns
    Map<String, Object> the map of attributes for the identified feature.

    public String getDisplayFieldName ()

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

    Returns
    String the display field name for the identified feature.

    public Geometry getGeometry ()

    Returns the geometry of the identified feature.

    Returns
    Geometry the geometry of the identified feature.

    public int getLayerId ()

    Returns the layer ID of the layer that contains the identified feature.

    Returns
    int the layer ID of the layer that contains the identified feature.

    public String getLayerName ()

    Returns the layer name of the layer that contains the identified feature.

    Returns
    String the layer name of the layer that contains the identified feature.

    public Object getValue ()

    Returns the value of the display field name for the identified feature.

    Returns
    Object the value of the display field name for the identified feature.

    public int hashCode ()

    Returns
    int

    public String toString ()

    Returns string representation of the class. The format and content of the returned string is not part of the contract of the method and is subject to change in any future release or patch without further notice.

    Returns
    String