com.esri.core.tasks.ags.geoprocessing
Class GPFeatureRecordSetLayer

java.lang.Object
  extended by com.esri.core.tasks.ags.geoprocessing.GPParameter
      extended by com.esri.core.tasks.ags.geoprocessing.GPFeatureRecordSetLayer
All Implemented Interfaces:
Serializable

public class GPFeatureRecordSetLayer
extends GPParameter

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>
   } 
  }
 }
 

See Also:
Serialized Form

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_GPRASTERDATA, DATATYPE_GPRASTERDATALAYER, DATATYPE_GPRECORDSET, DATATYPE_GPSTRING
 
Constructor Summary
GPFeatureRecordSetLayer(String paramName)
          Constructor setting the name of the parameter.
 
Method Summary
 void addGraphic(Graphic graphic)
          Convenient method to add a Graphic to a GPRecordSet
 boolean equals(Object obj)
           
 void fromJson(org.codehaus.jackson.JsonParser parser)
          Method used to populate a GP Parameter.
 Map<String,String> generateRequestParams()
           
 String generateValueParams()
          Method serializing GP parameter's values into a Json format.
 String getGeometryType()
           
 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()
           
 int hashCode()
           
 void setGeometryType(String geometryType)
           
 void setGraphics(ArrayList<Graphic> graphics)
           
 void setMapImage(GPMapImage mapImage)
           
 void setSpatialReference(SpatialReference spatialReference)
           
 
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

GPFeatureRecordSetLayer

public GPFeatureRecordSetLayer(String paramName)
Constructor setting the name of the parameter.

Parameters:
paramName - name of the parameter
Method Detail

getMapImage

public GPMapImage getMapImage()
This method returns the GPMapImage associated with this GPFeatureRecordSetLayer.
It returns null if the return type of this instance is data.

Returns:
the mapImage

setMapImage

public void setMapImage(GPMapImage mapImage)
Parameters:
mapImage - the mapImage to set

getGraphics

public 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.

Returns:
the graphics

setGraphics

public void setGraphics(ArrayList<Graphic> graphics)
Parameters:
graphics - the graphics to set

getGeometryType

public String getGeometryType()
Returns:
the geometryType

getSpatialReference

public SpatialReference getSpatialReference()
Returns:
the spatialReference

setGeometryType

public void setGeometryType(String geometryType)
Parameters:
geometryType - the geometryType to set

setSpatialReference

public void setSpatialReference(SpatialReference spatialReference)
Parameters:
spatialReference - the spatialReference to set

addGraphic

public void addGraphic(Graphic graphic)
Convenient method to add a Graphic to a GPRecordSet

Parameters:
Graphic - the Graphic to add

generateRequestParams

public Map<String,String> generateRequestParams()
Overrides:
generateRequestParams in class GPParameter

generateValueParams

public String generateValueParams()
                           throws Exception
Description copied from class: GPParameter
Method serializing GP parameter's values into a Json format.

Specified by:
generateValueParams in class GPParameter
Returns:
the Json String containing the GP parameter's values.
Throws:
Exception

fromJson

public void fromJson(org.codehaus.jackson.JsonParser parser)
              throws Exception
Description copied from class: GPParameter
Method used to populate a GP Parameter.

Specified by:
fromJson in class GPParameter
Parameters:
parser - a Json Parser
Throws:
Exception

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010. All Rights Reserved.