001: //$HeadURL: https://svn.wald.intevation.org/svn/deegree/base/trunk/src/org/deegree/ogcwebservices/wps/describeprocess/LiteralInput.java $
002: /*---------------- FILE HEADER ------------------------------------------
003:
004: This file is part of deegree.
005: Copyright (C) 2001-2008 by:
006: EXSE, Department of Geography, University of Bonn
007: http://www.giub.uni-bonn.de/exse/
008: lat/lon GmbH
009: http://www.lat-lon.de
010:
011: This library is free software; you can redistribute it and/or
012: modify it under the terms of the GNU Lesser General Public
013: License as published by the Free Software Foundation; either
014: version 2.1 of the License, or (at your option) any later version.
015:
016: This library is distributed in the hope that it will be useful,
017: but WITHOUT ANY WARRANTY; without even the implied warranty of
018: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
019: Lesser General Public License for more details.
020:
021: You should have received a copy of the GNU Lesser General Public
022: License along with this library; if not, write to the Free Software
023: Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
024:
025: Contact:
026:
027: Andreas Poth
028: lat/lon GmbH
029: Aennchenstraße 19
030: 53177 Bonn
031: Germany
032: E-Mail: poth@lat-lon.de
033:
034: Prof. Dr. Klaus Greve
035: Department of Geography
036: University of Bonn
037: Meckenheimer Allee 166
038: 53115 Bonn
039: Germany
040: E-Mail: greve@giub.uni-bonn.de
041:
042: ---------------------------------------------------------------------------*/
043: package org.deegree.ogcwebservices.wps.describeprocess;
044:
045: import org.deegree.datatypes.values.ValueRange;
046: import org.deegree.owscommon.OWSMetadata;
047: import org.deegree.owscommon.com110.OWSAllowedValues;
048:
049: /**
050: * LiteralInput.java
051: *
052: * Created on 09.03.2006. 22:57:28h
053: *
054: * Description of a process input that consists of a simple literal value (e.g., "2.1").
055: * (Informative: This type is a subset of the ows:UnNamedDomainType defined in owsDomaintype.xsd.)
056: *
057: * @author <a href="mailto:christian@kiehle.org">Christian Kiehle</a>
058: * @author <a href="mailto:christian.heier@gmx.de">Christian Heier</a>
059: * @author last edited by: $Author:wanhoff$
060: *
061: * @version $Revision: 9345 $, $Date:20.03.2007$
062: */
063: public class LiteralInput extends LiteralOutput {
064:
065: /**
066: * Indicates that there are a finite set of values and ranges allowed for this input, and
067: * contains list of all the valid values and/or ranges of values. Notice that these values and
068: * ranges can be displayed to a human client.
069: */
070: protected OWSAllowedValues allowedValues;
071:
072: /**
073: * Indicates that any value is allowed for this input. This element shall be included when there
074: * are no restrictions, except for data type, on the allowable value of this input.
075: */
076: protected boolean anyValueAllowed;
077:
078: /**
079: * Indicates that there are a finite set of values and ranges allowed for this input, which are
080: * specified in the referenced list.
081: */
082: protected OWSMetadata valuesReference;
083:
084: /**
085: * Optional default value for this quantity, which should be included when this quantity has a
086: * default value.
087: */
088: protected ValueRange defaultValue;
089:
090: /**
091: *
092: * @param domainMetadataType
093: * @param supportedUOMsType
094: * @param allowedValues
095: * @param anyValueAllowed
096: * @param defaultValue
097: * @param valuesReference
098: */
099: public LiteralInput(OWSMetadata domainMetadataType,
100: SupportedUOMs supportedUOMsType,
101: OWSAllowedValues allowedValues, boolean anyValueAllowed,
102: ValueRange defaultValue, OWSMetadata valuesReference) {
103: super (domainMetadataType, supportedUOMsType);
104: this .allowedValues = allowedValues;
105: this .anyValueAllowed = anyValueAllowed;
106: this .defaultValue = defaultValue;
107: this .valuesReference = valuesReference;
108: }
109:
110: /**
111: * @return Returns the allowedValues.
112: */
113: public OWSAllowedValues getAllowedValues() {
114: return allowedValues;
115: }
116:
117: /**
118: * @param value
119: * The allowedValues to set.
120: */
121: public void setAllowedValues(OWSAllowedValues value) {
122: this .allowedValues = value;
123: }
124:
125: /**
126: * @return the anyValue.
127: */
128: public boolean getAnyValue() {
129: return anyValueAllowed;
130: }
131:
132: /**
133: * @param anyValueAllowed
134: * @param anyValue
135: * The anyValue to set.
136: */
137: public void setAnyValue(boolean anyValueAllowed) {
138: this .anyValueAllowed = anyValueAllowed;
139: }
140:
141: /**
142: * @return the valuesReference.
143: */
144: public OWSMetadata getValuesReference() {
145: return valuesReference;
146: }
147:
148: /**
149: * @param value
150: * The valuesReference to set.
151: */
152: public void setValuesReference(OWSMetadata value) {
153: this .valuesReference = value;
154: }
155:
156: /**
157: * @return Returns the defaultValue.
158: */
159: public ValueRange getDefaultValue() {
160: return defaultValue;
161: }
162:
163: /**
164: * @param value
165: * The defaultValue to set.
166: */
167: public void setDefaultValue(ValueRange value) {
168: this.defaultValue = value;
169: }
170:
171: }
|