org.deegree.services.wps
Class ProcessletInputs

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

public final class ProcessletInputs
extends 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(List<ProcessletInput> inputs)
          Creates a new ProcessletInputs instance that consists of the given input parameters.
 
Method Summary
 ProcessletInput getParameter(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(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(String parameterId, 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).
 List<ProcessletInput> getParameters()
          Returns all input parameters.
 List<ProcessletInput> getParameters(CodeType parameterId)
          Returns the input parameters with the given identifier.
 List<ProcessletInput> getParameters(String parameterId)
          Returns the input parameters with the given identifier (convenience method for identifiers with a null codeSpace).
 List<ProcessletInput> getParameters(String parameterId, 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(List<ProcessletInput> inputs)
Creates a new ProcessletInputs instance that consists of the given input parameters.

Parameters:
inputs - input parameters
Method Detail

getParameters

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

Returns:
all input parameters

getParameters

public List<ProcessletInput> getParameters(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 List<ProcessletInput> getParameters(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 List<ProcessletInput> getParameters(String parameterId,
                                           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(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:
RuntimeException - when more than one input parameter with the specified identifier is present

getParameter

public ProcessletInput getParameter(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:
RuntimeException - when more than one input parameter with the specified identifier is present

getParameter

public ProcessletInput getParameter(String parameterId,
                                    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:
RuntimeException - when more than one input parameter with the specified identifier is present


Copyright © 2011. All Rights Reserved.