001    //$HeadURL: https://svn.wald.intevation.org/svn/deegree/base/branches/2.3_testing/src/org/deegree/ogcwebservices/wps/describeprocess/SupportedUOMs.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    
037    package org.deegree.ogcwebservices.wps.describeprocess;
038    
039    import java.util.ArrayList;
040    import java.util.List;
041    
042    import org.deegree.owscommon.OWSMetadata;
043    
044    /**
045     * SupportedUOMs.java
046     *
047     * Created on 09.03.2006. 22:55:34h
048     *
049     * List of supported units of measure for a process input or output.
050     *
051     * @author <a href="mailto:christian@kiehle.org">Christian Kiehle</a>
052     * @author <a href="mailto:christian.heier@gmx.de">Christian Heier</a>
053     * @author last edited by: $Author: mschneider $
054     *
055     * @version $Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18. Jun 2009) $
056     */
057    public class SupportedUOMs {
058    
059        /**
060         * Unordered list of references to the Units of Measure supported for this input or output. This element shall not
061         * be included if there is only one (i.e., the default) UOM supported.
062         */
063        protected List<OWSMetadata> uom;
064    
065        /**
066         * eference to the default UOM supported for this input or output, if any. The process shall expect input in or
067         * produce output in this UOM unless the Execute request specifies another supported UOM.
068         */
069        protected OWSMetadata defaultUOM;
070    
071        /**
072         * @param defaultuom
073         * @param uom
074         */
075        public SupportedUOMs( OWSMetadata defaultuom, List<OWSMetadata> uom ) {
076            defaultUOM = defaultuom;
077            this.uom = uom;
078        }
079    
080        /**
081         *
082         * @return UOM
083         */
084        public List<OWSMetadata> getUOM() {
085            if ( uom == null ) {
086                uom = new ArrayList<OWSMetadata>();
087            }
088            return this.uom;
089        }
090    
091        /**
092         * Gets the value of the defaultUOM property.
093         *
094         * @return possible object is {@link String  }
095         */
096        public OWSMetadata getDefaultUOM() {
097            return defaultUOM;
098        }
099    
100        /**
101         * Sets the value of the defaultUOM property.
102         *
103         * @param defaultUOM
104         */
105        public void setDefaultUOM( OWSMetadata defaultUOM ) {
106            this.defaultUOM = defaultUOM;
107        }
108    
109    }