org.deegree.services.wps.input
Class LiteralInputImpl

java.lang.Object
  extended by org.deegree.services.wps.input.ProcessletInputImpl
      extended by org.deegree.services.wps.input.LiteralInputImpl
All Implemented Interfaces:
LiteralInput, ProcessletInput

public class LiteralInputImpl
extends ProcessletInputImpl
implements LiteralInput

A literal data ProcessletInput parameter of a simple quantity (e.g., one number) with optional UOM (unit-of-measure) information.

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

Field Summary
 
Fields inherited from class org.deegree.services.wps.input.ProcessletInputImpl
definition
 
Constructor Summary
LiteralInputImpl(LiteralInputDefinition definition, org.deegree.commons.tom.ows.LanguageString title, org.deegree.commons.tom.ows.LanguageString summary, java.lang.String value, java.lang.String uom)
          Creates a new LiteralInputImpl instance.
 
Method Summary
 java.lang.String getDataType()
          Returns the (human-readable) literal data type from the process definition, e.g.
 LiteralInputDefinition getDefinition()
          Returns the type information for this input argument.
 java.lang.String getUOM()
          Returns the UOM (unit-of-measure) for the literal value, it is guaranteed that the returned UOM is supported for this parameter (according to the process description).
 java.lang.String getValue()
          Returns the literal value.
 java.lang.String toString()
           
 
Methods inherited from class org.deegree.services.wps.input.ProcessletInputImpl
getAbstract, getIdentifier, getTitle
 
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.input.ProcessletInput
getAbstract, getIdentifier, getTitle
 

Constructor Detail

LiteralInputImpl

public LiteralInputImpl(LiteralInputDefinition definition,
                        org.deegree.commons.tom.ows.LanguageString title,
                        org.deegree.commons.tom.ows.LanguageString summary,
                        java.lang.String value,
                        java.lang.String uom)
Creates a new LiteralInputImpl instance.

Parameters:
definition - corresponding input definition from process description
title - optional title supplied with the input parameter, may be null
summary - optional narrative description supplied with the input parameter, may be null
value - literal value
uom - optional unit-of-measure, must be one of the UOMs values from the definition, or null if no UOMs are defined there
Method Detail

getValue

public java.lang.String getValue()
Returns the literal value.

Specified by:
getValue in interface LiteralInput
Returns:
the literal value (has to be in the correct UOM)
See Also:
getUOM()

getUOM

public java.lang.String getUOM()
Returns the UOM (unit-of-measure) for the literal value, it is guaranteed that the returned UOM is supported for this parameter (according to the process description).

Specified by:
getUOM in interface LiteralInput
Returns:
the requested UOM (unit-of-measure) for the literal value, may be null if no UOM is specified in the process description

getDataType

public java.lang.String getDataType()
Returns the (human-readable) literal data type from the process definition, e.g. integer, real, etc).

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

getDefinition

public LiteralInputDefinition getDefinition()
Description copied from class: ProcessletInputImpl
Returns the type information for this input argument.

Overrides:
getDefinition in class ProcessletInputImpl
Returns:
the type information

toString

public java.lang.String toString()
Overrides:
toString in class ProcessletInputImpl


Copyright © 2011. All Rights Reserved.