|
||||||||||
| 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>
}
}
}
| 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.It returns null if the return type of this instance is not data. |
GPMapImage |
getMapImage()
This method returns the GPMapImage associated with this GPFeatureRecordSetLayer.It returns null if the return type of this instance is data. |
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 |
|---|
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()
public SpatialReference getSpatialReference()
public void setGeometryType(Geometry.Type geometryType)
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 GPParameterException
public void fromJson(org.codehaus.jackson.JsonParser parser)
throws Exception
GPParameter
fromJson in class GPParameterparser - a Json Parser
Exceptionpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||