org.deegree.services.wps
Class ProcessletInputs

java.lang.Object
  extended by org.deegree.services.wps.ProcessletInputs

public final class ProcessletInputs
extends java.lang.Object

Encapsulates the input parameters for the execution of a Processlet.

Version:
$Revision: $, $Date: $
Author:
Markus Schneider, last edited by: $Author: schneider $

Constructor Summary
ProcessletInputs(java.util.List<ProcessletInput> inputs)
          Creates a new ProcessletInputs instance that consists of the given input parameters.
 
Method Summary
 ProcessletInput getParameter(org.deegree.commons.tom.ows.CodeType parameterId)
          Returns the single input parameter with the given identifier (convenience method for the common case when only a single parameter with a certain identifier is allowed).
 ProcessletInput getParameter(java.lang.String parameterId)
          Returns the single input parameter with the given identifier (convenience method for the common case when only a single parameter with a certain identifier is allowed and the identifier has a null codeSpace).
 ProcessletInput getParameter(java.lang.String parameterId, java.lang.String codeSpace)
          Returns the single input parameter with the given identifier (convenience method for the common case when only a single parameter with a certain identifier is allowed).
 java.util.List<ProcessletInput> getParameters()
          Returns all input parameters.
 java.util.List<ProcessletInput> getParameters(org.deegree.commons.tom.ows.CodeType parameterId)
          Returns the input parameters with the given identifier.
 java.util.List<ProcessletInput> getParameters(java.lang.String parameterId)
          Returns the input parameters with the given identifier (convenience method for identifiers with a null codeSpace).
 java.util.List<ProcessletInput> getParameters(java.lang.String parameterId, java.lang.String codeSpace)
          Returns the input parameters with the given identifier.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessletInputs

public ProcessletInputs(java.util.List<ProcessletInput> inputs)
Creates a new ProcessletInputs instance that consists of the given input parameters.

Parameters:
inputs - input parameters
Method Detail

getParameters

public java.util.List<ProcessletInput> getParameters()
Returns all input parameters.

Returns:
all input parameters

getParameters

public java.util.List<ProcessletInput> getParameters(java.lang.String parameterId)
Returns the input parameters with the given identifier (convenience method for identifiers with a null codeSpace).

Parameters:
parameterId - identifier of the input parameters to be looked up
Returns:
the input parameters with the given identifier

getParameters

public java.util.List<ProcessletInput> getParameters(org.deegree.commons.tom.ows.CodeType parameterId)
Returns the input parameters with the given identifier.

Parameters:
parameterId - identifier of the input parameters to be looked up
Returns:
the input parameters with the given identifier

getParameters

public java.util.List<ProcessletInput> getParameters(java.lang.String parameterId,
                                                     java.lang.String codeSpace)
Returns the input parameters with the given identifier.

Parameters:
parameterId - identifier of the input parameters to be looked up
codeSpace - codeSpace of the parameter identifier
Returns:
the input parameters with the given identifier

getParameter

public ProcessletInput getParameter(java.lang.String parameterId)
Returns the single input parameter with the given identifier (convenience method for the common case when only a single parameter with a certain identifier is allowed and the identifier has a null codeSpace).

Parameters:
parameterId - identifier of the input parameters to be looked up
Returns:
the input parameters with the given identifier, or null if no such parameter exists
Throws:
java.lang.RuntimeException - when more than one input parameter with the specified identifier is present

getParameter

public ProcessletInput getParameter(org.deegree.commons.tom.ows.CodeType parameterId)
Returns the single input parameter with the given identifier (convenience method for the common case when only a single parameter with a certain identifier is allowed).

Parameters:
parameterId - identifier of the input parameters to be looked up
Returns:
the input parameters with the given identifier, or null if no such parameter exists
Throws:
java.lang.RuntimeException - when more than one input parameter with the specified identifier is present

getParameter

public ProcessletInput getParameter(java.lang.String parameterId,
                                    java.lang.String codeSpace)
Returns the single input parameter with the given identifier (convenience method for the common case when only a single parameter with a certain identifier is allowed).

Parameters:
parameterId - identifier of the input parameters to be looked up
codeSpace - codeSpace of the parameter identifier
Returns:
the input parameters with the given identifier, or null if no such parameter exists
Throws:
java.lang.RuntimeException - when more than one input parameter with the specified identifier is present


Copyright © 2011. All Rights Reserved.