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

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

public class GPBoolean
extends GPParameter

The GPBoolean class is a container that is used to represent a geoprocessing parameter of the type Boolean.

Since:
1.0
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_GPMULTIVALUE, DATATYPE_GPRASTERDATA, DATATYPE_GPRASTERDATALAYER, DATATYPE_GPRECORDSET, DATATYPE_GPSTRING
 
Constructor Summary
GPBoolean()
          Constructs an empty GPBoolean instance.
GPBoolean(String paramName)
          Constructor taking in the name of the GP parameter.
 
Method Summary
 boolean equals(Object obj)
           
 void fromJson(org.codehaus.jackson.JsonParser parser)
          Method used to populate a GP Parameter.
 String generateValueParams()
          Method serializing GP parameter's values into a Json format.
 boolean getValue()
          Returns the boolean value of this parameter.
 int hashCode()
           
 void setValue(boolean value)
          Sets the boolean value of this parameter.
 String toString()
           
 
Methods inherited from class com.esri.core.tasks.ags.geoprocessing.GPParameter
createFromJson, generateRequestParams, getDataType, getParamName, setParamName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GPBoolean

public GPBoolean(String paramName)
Constructor taking in the name of the GP parameter.

Parameters:
paramName - the name of the GP parameter
Since:
1.0

GPBoolean

public GPBoolean()
Constructs an empty GPBoolean instance.

Since:
1.0
Method Detail

getValue

public boolean getValue()
Returns the boolean value of this parameter.

Returns:
the value of this GP boolean
Since:
1.0

setValue

public void setValue(boolean value)
Sets the boolean value of this parameter.

Parameters:
value - the boolean value to set
Since:
1.0

generateValueParams

public String generateValueParams()
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.
Since:
1.0

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
Since:
1.0

hashCode

public int hashCode()
Overrides:
hashCode in class Object
Since:
1.0

equals

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

toString

public String toString()
Overrides:
toString in class Object
Since:
1.0


Copyright © 2012. All Rights Reserved.