001    //$HeadURL: svn+ssh://rbezema@svn.wald.intevation.org/deegree/base/branches/2.2_testing/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, SupportedUOMs supportedUOMsType,
100                             OWSAllowedValues allowedValues, boolean anyValueAllowed, ValueRange defaultValue,
101                             OWSMetadata valuesReference ) {
102            super( domainMetadataType, supportedUOMsType );
103            this.allowedValues = allowedValues;
104            this.anyValueAllowed = anyValueAllowed;
105            this.defaultValue = defaultValue;
106            this.valuesReference = valuesReference;
107        }
108    
109        /**
110         * @return Returns the allowedValues.
111         */
112        public OWSAllowedValues getAllowedValues() {
113            return allowedValues;
114        }
115    
116        /**
117         * @param value
118         *            The allowedValues to set.
119         */
120        public void setAllowedValues( OWSAllowedValues value ) {
121            this.allowedValues = value;
122        }
123    
124        /**
125         * @return the anyValue.
126         */
127        public boolean getAnyValue() {
128            return anyValueAllowed;
129        }
130    
131        /**
132         * @param anyValueAllowed
133         * @param anyValue
134         *            The anyValue to set.
135         */
136        public void setAnyValue( boolean anyValueAllowed ) {
137            this.anyValueAllowed = anyValueAllowed;
138        }
139    
140        /**
141         * @return the valuesReference.
142         */
143        public OWSMetadata getValuesReference() {
144            return valuesReference;
145        }
146    
147        /**
148         * @param value
149         *            The valuesReference to set.
150         */
151        public void setValuesReference( OWSMetadata value ) {
152            this.valuesReference = value;
153        }
154    
155        /**
156         * @return Returns the defaultValue.
157         */
158        public ValueRange getDefaultValue() {
159            return defaultValue;
160        }
161    
162        /**
163         * @param value
164         *            The defaultValue to set.
165         */
166        public void setDefaultValue( ValueRange value ) {
167            this.defaultValue = value;
168        }
169    
170    }