001: //$HeadURL: https://svn.wald.intevation.org/svn/deegree/base/trunk/src/org/deegree/portal/context/DataService.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/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.portal.context;
045:
046: /**
047: * describes the service lying behind a WMS layer. This can be a WFS, a WCS or
048: * a cascaded WMS. If the dataservice is a WFS an instance of this class also
049: * provides informations about the geometry type delivered by the WFS for this
050: * assigned feature type. If the service is a WCS the geometry type attribute
051: * contains the type of coverage assigned to the layer (Grid, TIN, Thiessen
052: * polygon ...)
053: *
054: * @version $Revision: 9346 $
055: * @author <a href="mailto:poth@lat-lon.de">Andreas Poth</a>
056: */
057: public class DataService {
058: private Server server = null;
059: private String featureType = null;
060: private String geometryType = null;
061:
062: /**
063: * Creates a new DataService object.
064: *
065: * @param server server description
066: * @param featureType feature type provided by the server if it's a WFS
067: * @param geometryType geometry type or coverage type if the server is a
068: * WFS or a WCS
069: */
070: public DataService(Server server, String featureType,
071: String geometryType) {
072: setServer(server);
073: setFeatureType(featureType);
074: setGeometryType(geometryType);
075: }
076:
077: /**
078: * returns the an instance of an object describing the service/server behind
079: * a WMS layer
080: *
081: * @return instance of <tt>Server</tt>
082: */
083: public Server getServer() {
084: return server;
085: }
086:
087: /**
088: * sets the an instance of an object describing the service/server behind
089: * a WMS layer
090: *
091: * @param server server description
092: */
093: public void setServer(Server server) {
094: this .server = server;
095: }
096:
097: /**
098: * returns the featuretype assigned to the WMS layer if the server behind it
099: * is a WFS
100: *
101: * @return
102: */
103: public String getFeatureType() {
104: return featureType;
105: }
106:
107: /**
108: * sets the featuretype assigned to the WMS layer if the server behind it
109: * is a WFS
110: *
111: * @param featureType
112: */
113: public void setFeatureType(String featureType) {
114: this .featureType = featureType;
115: }
116:
117: /**
118: * returns the geometry type or coverage type provided by the server behind
119: * a WMS layer if the server is a WFS or a WCS
120: *
121: * @return
122: */
123: public String getGeometryType() {
124: return geometryType;
125: }
126:
127: /**
128: * sets the geometry type or coverage type provided by the server behind
129: * a WMS layer if the server is a WFS or a WCS
130: *
131: * @param geometryType
132: */
133: public void setGeometryType(String geometryType) {
134: this.geometryType = geometryType;
135: }
136:
137: }
|