001 //$HeadURL: https://svn.wald.intevation.org/svn/deegree/base/branches/2.3_testing/src/org/deegree/ogcwebservices/wpvs/capabilities/Dimension.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.wpvs.capabilities;
038
039 /**
040 * TODO this class is an extended copy of org.deegree.ogcwebservices.wms.capabilities.Dimension.
041 * the wms version should be moved up and this one should be a specialisation.
042 *
043 * @author <a href="mailto:mays@lat-lon.de">Judit Mays</a>
044 * @author last edited by: $Author: mschneider $
045 *
046 * @version 2.0, $Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18. Jun 2009) $
047 *
048 * @since 2.0
049 */
050 public class Dimension {
051
052 private String name;
053
054 private String units;
055
056 private String unitSymbol;
057
058 private String default_;
059
060 private Boolean multipleValues;
061
062 private Boolean nearestValue;
063
064 private Boolean current;
065
066 private String value;
067
068 /**
069 * Creates a new dimension object from the given parameters.
070 *
071 * @param name
072 * @param units
073 * @param unitSymbol
074 * @param default_
075 * @param multipleValues
076 * @param nearestValue
077 * @param current
078 * @param value
079 */
080 public Dimension( String name, String units, String unitSymbol, String default_,
081 Boolean multipleValues, Boolean nearestValue, Boolean current, String value ) {
082
083 this.name = name;
084 this.units = units;
085 this.unitSymbol = unitSymbol;
086 this.default_ = default_;
087 this.multipleValues = multipleValues;
088 this.nearestValue = nearestValue;
089 this.current = current;
090 this.value = value;
091
092 }
093
094 /**
095 * @return Returns the current.
096 */
097 public Boolean getCurrent() {
098 return current;
099 }
100
101 /**
102 * @return Returns the default_.
103 */
104 public String getDefault() {
105 return default_;
106 }
107
108 /**
109 * @return Returns the multipleValues.
110 */
111 public Boolean getMultipleValues() {
112 return multipleValues;
113 }
114
115 /**
116 * @return Returns the name.
117 */
118 public String getName() {
119 return name;
120 }
121
122 /**
123 * @return Returns the nearestValue.
124 */
125 public Boolean getNearestValue() {
126 return nearestValue;
127 }
128
129 /**
130 * @return Returns the units.
131 */
132 public String getUnits() {
133 return units;
134 }
135
136 /**
137 * @return Returns the unitSymbol.
138 */
139 public String getUnitSymbol() {
140 return unitSymbol;
141 }
142
143 /**
144 * @return Returns the value.
145 */
146 public String getValue() {
147 return value;
148 }
149
150 }