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