|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.data.wps.WPSUtils
public class WPSUtils
Contains helpful static util methods for the WPS module
Field Summary | |
---|---|
static int |
INPUTTYPE_COMPLEXDATA
|
static int |
INPUTTYPE_LITERAL
static ints representing the input types |
Constructor Summary | |
---|---|
WPSUtils()
|
Method Summary | |
---|---|
static DataType |
createInputDataType(java.lang.Object obj,
InputDescriptionType idt)
Creates a DataType input object from the given object and InputDescriptionType (from a describeprocess) and decides if the input is a literal or complex data based on its type. |
static DataType |
createInputDataType(java.lang.Object obj,
int type,
java.lang.String schema)
Creates a DataType input object from the given object, schema and type (complex or literal). |
static java.util.Map<java.lang.String,Parameter<?>> |
createInputParamMap(ProcessDescriptionType processDesc,
java.util.Map<java.lang.String,Parameter<?>> map)
Create a map of |
static java.util.Map<java.lang.String,Parameter<?>> |
createOutputParamMap(ProcessDescriptionType processDesc,
java.util.Map<java.lang.String,Parameter<?>> map)
Create a map of |
static java.util.Map<java.lang.String,java.lang.Object> |
createResultMap(ExecuteResponseType ert,
java.util.Map<java.lang.String,java.lang.Object> map)
Go through the ExecuteResponseType response object and put all the output results into a result map. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int INPUTTYPE_LITERAL
public static final int INPUTTYPE_COMPLEXDATA
Constructor Detail |
---|
public WPSUtils()
Method Detail |
---|
public static DataType createInputDataType(java.lang.Object obj, InputDescriptionType idt)
obj
- the base input objectidt
- input description type defining the input
public static DataType createInputDataType(java.lang.Object obj, int type, java.lang.String schema)
obj
- the base input objecttype
- the input type (literal or complexdata)schema
- only used for type complexdata
public static java.util.Map<java.lang.String,Parameter<?>> createInputParamMap(ProcessDescriptionType processDesc, java.util.Map<java.lang.String,Parameter<?>> map)
processDesc
- map
- add the inputs to the given map (create it if null)
public static java.util.Map<java.lang.String,Parameter<?>> createOutputParamMap(ProcessDescriptionType processDesc, java.util.Map<java.lang.String,Parameter<?>> map)
processDesc
- map
- add the outputs to the given map (create it if null)
public static java.util.Map<java.lang.String,java.lang.Object> createResultMap(ExecuteResponseType ert, java.util.Map<java.lang.String,java.lang.Object> map)
ert
- the execute response objectmap
- the map to store the results in (will be created if null)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |