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

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

public class GPRecordSet
extends GPParameter

Container class representing a Geo-Processing parameter of the type record set.

See Also:
Serialized Form

Constructor Summary
GPRecordSet()
          Constructs an empty GPRecordSet object.
GPRecordSet(String paramName)
          Constructor taking in a parameter name.
 
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()
          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.
 ArrayList<Graphic> getGraphics()
          Gets the array of graphics
 int hashCode()
           
 void setGraphics(ArrayList<Graphic> graphics)
          Sets the array of graphics.
 
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

GPRecordSet

public GPRecordSet(String paramName)
Constructor taking in a parameter name.

Parameters:
paramName - parameter name.

GPRecordSet

public GPRecordSet()
Constructs an empty GPRecordSet object.

Method Detail

getGraphics

public ArrayList<Graphic> getGraphics()
Gets the array of graphics

Returns:
the graphics

setGraphics

public void setGraphics(ArrayList<Graphic> graphics)
Sets the array of graphics.

Parameters:
graphics - the graphics 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()
Description copied from class: GPParameter
Generate request parameters in the form of map which contains three entried: parameter name, date type and value.

Overrides:
generateRequestParams in class GPParameter
Returns:
map representing the request parameters.

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 © 2012. All Rights Reserved.