|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.core.tasks.ags.geoprocessing.GPParameter com.esri.core.tasks.ags.geoprocessing.GPLinearUnit
public class GPLinearUnit
Container class representing a Geo-Processing parameter of the type linear unit.
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 | |
---|---|
GPLinearUnit()
Constructs an empty GPLinearUnit object. |
|
GPLinearUnit(String paramName)
Constructor taking in the parameter name. |
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 |
getDistance()
Gets the distance value. |
String |
getUnits()
Gets the units in string. |
int |
hashCode()
|
void |
setDistance(double distance)
Sets the distance value. |
void |
setUnits(String units)
Sets the units in string. |
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 |
---|
public GPLinearUnit(String paramName)
paramName
- parameter name.public GPLinearUnit()
Method Detail |
---|
public double getDistance()
public String getUnits()
public void setDistance(double distance)
distance
- the distance to set.public void setUnits(String units)
units
- the units to setpublic String generateValueParams() throws Exception
GPParameter
generateValueParams
in class GPParameter
Exception
public void fromJson(org.codehaus.jackson.JsonParser parser) throws Exception
GPParameter
fromJson
in class GPParameter
parser
- a Json Parser
Exception
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |