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

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

public class GPDouble
extends GPParameter

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

See Also:
Serialized Form

Constructor Summary
GPDouble()
          Constructs an empty GPDouble object.
GPDouble(String paramName)
          Constructor taking in the name of the 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.
 double getValue()
          Gets the double value.
 int hashCode()
           
 void setValue(double value)
          Sets the double value.
 
Methods inherited from class com.esri.core.tasks.ags.geoprocessing.GPParameter
createFromJson, generateRequestParams, getDataType, getParamName, setParamName
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GPDouble

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

Parameters:
paramName - the name of the parameter.

GPDouble

public GPDouble()
Constructs an empty GPDouble object.

Method Detail

getValue

public double getValue()
Gets the double value.

Returns:
the double value for this GPDouble object.

setValue

public void setValue(double value)
Sets the double value.

Parameters:
value - the double to set as the value for this parameter.

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.

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.