|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.core.map.FeatureSet
public class FeatureSet
A collection of features returned from ArcGIS Server or used as input to tasks. Each feature in the FeatureSet may contain geometry, attributes, symbology, and an InfoTemplate. If the FeatureSet does not contain geometry, and only contains attributes, the FeatureSet can be treated as a table where each feature is a row object. Tasks that return FeatureSet include QueryTask and GeoProcessor. In addition, GeoProcessor may require FeatureSet as input.
Constructor Summary | |
---|---|
FeatureSet()
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
static FeatureSet |
fromJson(org.codehaus.jackson.JsonParser parser)
Decodes objects from JSON representation. |
static FeatureSet |
fromJson(org.codehaus.jackson.JsonParser parser,
boolean graphicsHaveSpatialRef)
Decodes objects from JSON representation. |
static FeatureSet |
fromJson(org.codehaus.jackson.JsonParser parser,
boolean graphicsHaveSpatialRef,
int maxResultsReturned)
Decodes objects from JSON representation. |
static FeatureSet |
fromJson(org.codehaus.jackson.JsonParser parser,
int maxResults)
Decodes objects from JSON representation. |
String |
getDisplayFieldName()
Gets the name of the Display field. |
Map<String,Object> |
getFieldAliases()
Gets the name alias pairs of all fields. |
List<Field> |
getFields()
Gets the name of all fields. |
Geometry.Type |
getGeometryType()
Gets the geometry type of the graphics. |
Graphic[] |
getGraphics()
Gets the graphics in the set. |
String |
getObjectIdFieldName()
Gets the name of the ObjectId field. |
Integer[] |
getObjectIds()
Gets the array of the ObjectIds in the FeatureSet. |
SpatialReference |
getSpatialReference()
Gets the spatial reference of the FeatureSet. |
int |
hashCode()
|
void |
setFields(List<Field> fields)
Sets the name of the fields. |
void |
setGraphics(Graphic[] graphics)
Sets the graphics of the FeatureSet. |
void |
setSpatialReference(SpatialReference spatialReference)
Sets the spatial reference of the FeatureSet. |
static String |
toJson(FeatureSet featureSet)
Serializes a FeatureSet object into a JSON String. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FeatureSet()
Method Detail |
---|
public Integer[] getObjectIds()
public String getObjectIdFieldName()
public Graphic[] getGraphics()
public void setGraphics(Graphic[] graphics)
graphics
- The graphics to set.public SpatialReference getSpatialReference()
public void setSpatialReference(SpatialReference spatialReference)
spatialReference
- the spatialReference to setpublic Geometry.Type getGeometryType()
public String getDisplayFieldName()
public Map<String,Object> getFieldAliases()
public List<Field> getFields()
public void setFields(List<Field> fields)
fields
- the fields to setpublic static FeatureSet fromJson(org.codehaus.jackson.JsonParser parser, int maxResults) throws Exception
parser
- the Jackson parser holding the JSON data.maxResults
- the max results
Exception
- the exceptionpublic static FeatureSet fromJson(org.codehaus.jackson.JsonParser parser) throws Exception
parser
- the Jackson parser holding the JSON data.
Exception
- the exceptionpublic static FeatureSet fromJson(org.codehaus.jackson.JsonParser parser, boolean graphicsHaveSpatialRef) throws Exception
parser
- the Jackson parser holding the JSON data.graphicsHaveSpatialRef
- Whether or not the graphics contained in the FeatureSet
have a
Exception
- the exception
SpatialReference
.public static FeatureSet fromJson(org.codehaus.jackson.JsonParser parser, boolean graphicsHaveSpatialRef, int maxResultsReturned) throws Exception
parser
- the Jackson parser holding the JSON data.graphicsHaveSpatialRef
- Whether or not the graphics contained in the FeatureSet
have amaxResultsReturned
- the max results returned
Exception
- the exception
SpatialReference
.public String toString()
toString
in class Object
public static final String toJson(FeatureSet featureSet) throws Exception
featureSet
- a FeatureSet Object
Exception
- An exception thrown the object cannot be serialized into JSON string.public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |