java.lang.Object | |
↳ | com.esri.core.map.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.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
FeatureSet() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boolean | equals(Object obj) | ||||||||||
static FeatureSet |
fromJson(JsonParser parser, boolean graphicsHaveSpatialRef, int maxResultsReturned)
Decodes objects from JSON representation.
| ||||||||||
static FeatureSet |
fromJson(JsonParser parser)
Decodes objects from JSON representation.
| ||||||||||
static FeatureSet |
fromJson(JsonParser parser, boolean graphicsHaveSpatialRef)
Decodes objects from JSON representation.
| ||||||||||
static FeatureSet |
fromJson(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.
| ||||||||||
final static String |
toJson(FeatureSet featureSet)
Serializes a FeatureSet object into a JSON String.
| ||||||||||
String | toString() |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Decodes objects from JSON representation.
parser | the Jackson parser holding the JSON data. |
---|---|
graphicsHaveSpatialRef | Whether or not the graphics contained in the FeatureSet have a |
maxResultsReturned | the max results returned |
Exception | the exception
SpatialReference . |
---|
Decodes objects from JSON representation.
parser | the Jackson parser holding the JSON data. |
---|
Exception | the exception |
---|
Decodes objects from JSON representation.
parser | the Jackson parser holding the JSON data. |
---|---|
graphicsHaveSpatialRef | Whether or not the graphics contained in the FeatureSet have a |
Exception | the exception
SpatialReference . |
---|
Decodes objects from JSON representation.
parser | the Jackson parser holding the JSON data. |
---|---|
maxResults | the max results |
Exception | the exception |
---|
Gets the name of the Display field.
Gets the name alias pairs of all fields.
Gets the geometry type of the graphics.
Gets the name of the ObjectId field.
Gets the array of the ObjectIds in the FeatureSet.
Gets the spatial reference of the FeatureSet.
Sets the name of the fields.
fields | the fields to set |
---|
Sets the graphics of the FeatureSet.
graphics | The graphics to set. |
---|
Sets the spatial reference of the FeatureSet.
spatialReference | the spatialReference to set |
---|
Serializes a FeatureSet object into a JSON String.
featureSet | a FeatureSet Object |
---|
Exception | An exception thrown the object cannot be serialized into JSON string. |
---|