org.deegree.services.wps.output
Class LiteralOutputImpl

java.lang.Object
  extended by org.deegree.services.wps.output.ProcessletOutputImpl
      extended by org.deegree.services.wps.output.LiteralOutputImpl
All Implemented Interfaces:
LiteralOutput, ProcessletOutput

public class LiteralOutputImpl
extends ProcessletOutputImpl
implements LiteralOutput

Implementation of LiteralOutput.

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

Field Summary
 
Fields inherited from class org.deegree.services.wps.output.ProcessletOutputImpl
definition
 
Constructor Summary
LiteralOutputImpl(LiteralOutputDefinition outputType, String requestedUOM, boolean isRequested)
           
 
Method Summary
 String getDataType()
          Returns the announced literal data type from the process definition (e.g. integer, real, etc) as an URI, such as http://www.w3.org/TR/xmlschema-2/#integer.
 String getRequestedUOM()
          Returns the requested UOM (unit-of-measure) for the literal value, it is guaranteed that this UOM is supported for this parameter (according to the process description).
 String[] getSupportedUOMs()
          Returns the supported UOMs (unit-of-measures) for the literal output parameter as defined in the process definition (e.g.
 String getValue()
           
 void setValue(String value)
          Sets the value for this output parameter of the Processlet execution.
 
Methods inherited from class org.deegree.services.wps.output.ProcessletOutputImpl
getDefinition, getIdentifier, getSubmittedAbstract, getSubmittedTitle, isRequested, setAbstract, setTitle, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.deegree.services.wps.output.ProcessletOutput
getIdentifier, getSubmittedAbstract, getSubmittedTitle, isRequested, setAbstract, setTitle
 

Constructor Detail

LiteralOutputImpl

public LiteralOutputImpl(LiteralOutputDefinition outputType,
                         String requestedUOM,
                         boolean isRequested)
Method Detail

setValue

public void setValue(String value)
Description copied from interface: LiteralOutput
Sets the value for this output parameter of the Processlet execution.

Specified by:
setValue in interface LiteralOutput
Parameters:
value - value to be set (in the requested UOM)
See Also:
LiteralOutput.getRequestedUOM()

getRequestedUOM

public String getRequestedUOM()
Description copied from interface: LiteralOutput
Returns the requested UOM (unit-of-measure) for the literal value, it is guaranteed that this UOM is supported for this parameter (according to the process description).

Specified by:
getRequestedUOM in interface LiteralOutput
Returns:
the requested UOM (unit-of-measure) for the literal value, may be null

getDataType

public String getDataType()
Returns the announced literal data type from the process definition (e.g. integer, real, etc) as an URI, such as http://www.w3.org/TR/xmlschema-2/#integer.

Specified by:
getDataType in interface LiteralOutput
Returns:
the data type, or null if not specified in the process definition

getSupportedUOMs

public String[] getSupportedUOMs()
Returns the supported UOMs (unit-of-measures) for the literal output parameter as defined in the process definition (e.g. 'meters','feet', etc).

Returns:
the supported UOMs (array is never null, but may be empty)

getValue

public String getValue()


Copyright © 2011. All Rights Reserved.