com.esri.core.tasks.ags.geoprocessing
Class GPLinearUnit
java.lang.Object
com.esri.core.tasks.ags.geoprocessing.GPParameter
com.esri.core.tasks.ags.geoprocessing.GPLinearUnit
- All Implemented Interfaces:
- Serializable
public class GPLinearUnit
- extends GPParameter
Container class representing a Geo-Processing parameter of the type linear unit.
- See Also:
- Serialized Form
| 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 |
GPLinearUnit
public GPLinearUnit(String paramName)
getDistance
public double getDistance()
- Returns:
- the distance
getUnits
public String getUnits()
- Returns:
- the unit
setDistance
public void setDistance(double distance)
- Parameters:
distance - the distance to set
setUnits
public void setUnits(String units)
- Parameters:
units - the unit to set
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.