001 //$HeadURL: svn+ssh://rbezema@svn.wald.intevation.org/deegree/base/tags/2.1/src/org/deegree/ogcwebservices/wms/capabilities/Dimension.java $ 002 /*---------------- FILE HEADER ------------------------------------------ 003 004 This file is part of deegree. 005 Copyright (C) 2001-2006 by: 006 EXSE, Department of Geography, University of Bonn 007 http://www.giub.uni-bonn.de/deegree/ 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 Aennchenstr. 19 030 53115 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 ---------------------------------------------------------------------------*/ 044 package org.deegree.ogcwebservices.wms.capabilities; 045 046 047 048 /** 049 * The Dimension element declares the _existence_ of a dimension. 050 * The optional element <Dimension> is used in Capabilities XML to declare that 051 * one or more dimensional parameters are relevant to the information holdings 052 * of that server. The Dimension element does not provide valid values for 053 * a Dimension; that is the role of the Extent element described below. A 054 * Dimension element includes a required name, a required measurement units specifier, 055 * and an optional unitSymbol. 056 * <p>----------------------------------------------------------------------</p> 057 * 058 * @author <a href="mailto:k.lupp@web.de">Katharina Lupp</a> 059 * @author <a href="mailto:mschneider@lat-lon.de">Markus Schneider</a> 060 * @version $Revision: 6259 $ 061 */ 062 public class Dimension { 063 private String name = null; 064 private String unitSymbol = null; 065 private String units = null; 066 067 068 /** 069 * constructor initializing the class with the <Dimension> 070 * @param name 071 * @param units 072 * @param unitSymbol 073 */ 074 public Dimension( String name, String units, String unitSymbol ) { 075 setName( name ); 076 setUnits( units ); 077 setUnitSymbol( unitSymbol ); 078 } 079 080 /** 081 * @return the name of the dimension 082 */ 083 public String getName() { 084 return name; 085 } 086 087 /** 088 * sets the name of the dimension 089 * @param name 090 */ 091 public void setName( String name ) { 092 this.name = name; 093 } 094 095 /** 096 * @return the units the dimension is measured 097 */ 098 public String getUnits() { 099 return units; 100 } 101 102 /** 103 * sets the units the dimension is measured 104 * @param units 105 */ 106 public void setUnits( String units ) { 107 this.units = units; 108 } 109 110 /** 111 * @return the unit symbols 112 */ 113 public String getUnitSymbol() { 114 return unitSymbol; 115 } 116 117 /** 118 * sets the unit symbols 119 * @param unitSymbol 120 */ 121 public void setUnitSymbol( String unitSymbol ) { 122 this.unitSymbol = unitSymbol; 123 } 124 125 @Override 126 public String toString() { 127 String ret = null; 128 ret = "name = " + name + "\n"; 129 ret += ( "units = " + units + "\n" ); 130 ret += ( "unitSymbol = " + unitSymbol + "\n" ); 131 return ret; 132 } 133 134 } 135 /* ******************************************************************** 136 Changes to this class. What the people have been up to: 137 $Log$ 138 Revision 1.11 2006/09/08 08:42:02 schmitz 139 Updated the WMS to be 1.1.1 conformant once again. 140 Cleaned up the WMS code. 141 Added cite WMS test data. 142 143 Revision 1.10 2006/07/12 14:46:18 poth 144 comment footer added 145 146 ********************************************************************** */