org.geotools.data.wps
Class WPSUtils

java.lang.Object
  extended by org.geotools.data.wps.WPSUtils

public class WPSUtils
extends java.lang.Object

Contains helpful static util methods for the WPS module

Author:
gdavis

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 inputs for a process based on its describeProcess.
static java.util.Map<java.lang.String,Parameter<?>> createOutputParamMap(ProcessDescriptionType processDesc, java.util.Map<java.lang.String,Parameter<?>> map)
          Create a map of outputs for a process based on its describeProcess.
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

INPUTTYPE_LITERAL

public static final int INPUTTYPE_LITERAL
static ints representing the input types

See Also:
Constant Field Values

INPUTTYPE_COMPLEXDATA

public static final int INPUTTYPE_COMPLEXDATA
See Also:
Constant Field Values
Constructor Detail

WPSUtils

public WPSUtils()
Method Detail

createInputDataType

public 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.

Parameters:
obj - the base input object
idt - input description type defining the input
Returns:
the created DataType input object

createInputDataType

public 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).

Parameters:
obj - the base input object
type - the input type (literal or complexdata)
schema - only used for type complexdata
Returns:
the created DataType input object

createInputParamMap

public static java.util.Map<java.lang.String,Parameter<?>> createInputParamMap(ProcessDescriptionType processDesc,
                                                                               java.util.Map<java.lang.String,Parameter<?>> map)
Create a map of inputs for a process based on its describeProcess.

Parameters:
processDesc -
map - add the inputs to the given map (create it if null)
Returns:
map of name,Parameter representing the input params for this process

createOutputParamMap

public static java.util.Map<java.lang.String,Parameter<?>> createOutputParamMap(ProcessDescriptionType processDesc,
                                                                                java.util.Map<java.lang.String,Parameter<?>> map)
Create a map of outputs for a process based on its describeProcess.

Parameters:
processDesc -
map - add the outputs to the given map (create it if null)
Returns:
map of name,Parameter representing the output results for this process

createResultMap

public 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.

Parameters:
ert - the execute response object
map - the map to store the results in (will be created if null)
Returns:
the results in a key,Object map


Copyright © 1996-2010 Geotools. All Rights Reserved.