com.esri.core.tasks.ags.geoprocessing
Class GPMultiValue<T extends GPParameter>

java.lang.Object
  extended by com.esri.core.tasks.ags.geoprocessing.GPParameter
      extended by com.esri.core.tasks.ags.geoprocessing.GPMultiValue<T>
Type Parameters:
T - concrete subclass of GPParameter.
All Implemented Interfaces:
Serializable

public class GPMultiValue<T extends GPParameter>
extends GPParameter

Container class representing a Geo-Processing parameter of the type multivalue. It contains a list of GPParameter instance.

See Also:
Serialized Form

Constructor Summary
GPMultiValue(String name)
          Constructor taking in a parameter name.
 
Method Summary
 void addValue(T value)
          Convenient method to add a GPParameter value into the parameter list.
 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.
 List<T> getValues()
          Gets the list of GPParameter values.
 int hashCode()
           
 void setValues(List<T> values)
          Sets list of GPParameter values.
 
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

GPMultiValue

public GPMultiValue(String name)
Constructor taking in a parameter name.

Parameters:
name - parameter name.
Method Detail

getValues

public List<T> getValues()
Gets the list of GPParameter values.

Returns:
the list of GPParameter values.

setValues

public void setValues(List<T> values)
Sets list of GPParameter values.

Parameters:
values - the parameters to set

addValue

public void addValue(T value)
Convenient method to add a GPParameter value into the parameter list.

Parameters:
value -

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

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

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.