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