|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.esri.core.tasks.ags.geoprocessing.GPParameter
com.esri.core.tasks.ags.geoprocessing.GPFeatureRecordSetLayer
public class GPFeatureRecordSetLayer
Container class representing a Geo-Processing parameter of the type Graphic record set layer.
This object can have 2 representations:
- if data is the return type selected, the format is as follow:
{ "paramName" : "<paramName>", "dataType" : "GPFeatureRecordSetLayer", "value" : { "geometryType" : "<geometryType>", "spatialReference" : {<spatialReference>}, "features" : [ { "geometry" : {<geometry1>}, "attributes" : { "<field1>" : <value11>, "<field2>" : <value12> } }, { "geometry" : {<geometry2>}, "attributes" : { "<field1>" : <value21>, "<field2>" : <value22> } } ] } }- if data is NOT the return type selected, the format is as follow:
{ "paramName" : "<paramName>", "dataType" : "<GPRasterDataLayer | GPFeatureRecordSetLayer>", "value" : { "mapImage" : { "href" : "<href>", "width" : <width>, "height" : <height>, "extent" : {<envelope>}, "scale" : <scale> } } }
Field Summary |
---|
Fields inherited from class com.esri.core.tasks.ags.geoprocessing.GPParameter |
---|
dataType, DATATYPE_GPBOOLEAN, DATATYPE_GPDATAFILE, DATATYPE_GPDATE, DATATYPE_GPDOUBLE, DATATYPE_GPFEATURERECORDSETLAYER, DATATYPE_GPLINEARUNIT, DATATYPE_GPLONG, DATATYPE_GPMULTIVALUE, DATATYPE_GPRASTERDATA, DATATYPE_GPRASTERDATALAYER, DATATYPE_GPRECORDSET, DATATYPE_GPSTRING |
Constructor Summary | |
---|---|
GPFeatureRecordSetLayer()
Constructs an empty GPFeatureRecordSetLayer object. |
|
GPFeatureRecordSetLayer(String paramName)
Constructor taking in the name of the parameter. |
Method Summary | |
---|---|
void |
addGraphic(Graphic graphic)
Convenient method to add a Graphic to a GPFeatureRecordSetLayer. |
boolean |
equals(Object obj)
|
void |
fromJson(org.codehaus.jackson.JsonParser parser)
Method used to populate a GP Parameter. |
Map<String,String> |
generateRequestParams()
Generate request parameters in the form of map which contains three entried: parameter name, date type and value. |
String |
generateValueParams()
Method serializing GP parameter's values into a Json format. |
Geometry.Type |
getGeometryType()
Gets the Geometry.Type . |
ArrayList<Graphic> |
getGraphics()
This method returns the Graphic associated with this GPFeatureRecordSetLayer. |
GPMapImage |
getMapImage()
This method returns the GPMapImage associated with this GPFeatureRecordSetLayer. |
SpatialReference |
getSpatialReference()
Gets the spatial reference. |
int |
hashCode()
|
void |
setGeometryType(Geometry.Type geometryType)
Sets the Geometry.Type . |
void |
setGraphics(ArrayList<Graphic> graphics)
Sets the graphics to this GPFeatureRecordSetLayer object. |
void |
setMapImage(GPMapImage mapImage)
|
void |
setSpatialReference(SpatialReference spatialReference)
Sets the spatial reference. |
Methods inherited from class com.esri.core.tasks.ags.geoprocessing.GPParameter |
---|
createFromJson, getDataType, getParamName, setParamName |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GPFeatureRecordSetLayer(String paramName)
paramName
- name of the parameterpublic GPFeatureRecordSetLayer()
Method Detail |
---|
public GPMapImage getMapImage()
GPMapImage
associated with this GPFeatureRecordSetLayer.
public void setMapImage(GPMapImage mapImage)
mapImage
- the mapImage to setpublic ArrayList<Graphic> getGraphics()
Graphic
associated with this GPFeatureRecordSetLayer.
public void setGraphics(ArrayList<Graphic> graphics)
graphics
- the graphics to set.public Geometry.Type getGeometryType()
Geometry.Type
.
public SpatialReference getSpatialReference()
public void setGeometryType(Geometry.Type geometryType)
Geometry.Type
.
geometryType
- the geometry type to setpublic void setSpatialReference(SpatialReference spatialReference)
spatialReference
- the spatial reference to set.public void addGraphic(Graphic graphic)
Graphic
- the Graphic to addpublic Map<String,String> generateRequestParams()
GPParameter
generateRequestParams
in class GPParameter
public String generateValueParams() throws Exception
GPParameter
generateValueParams
in class GPParameter
Exception
public void fromJson(org.codehaus.jackson.JsonParser parser) throws Exception
GPParameter
fromJson
in class GPParameter
parser
- a Json Parser
Exception
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 |