001    //$HeadURL: svn+ssh://jwilden@svn.wald.intevation.org/deegree/base/branches/2.5_testing/src/org/deegree/ogcwebservices/getcapabilities/OGCStandardCapabilities.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.ogcwebservices.getcapabilities;
037    
038    /**
039     * Represents the capabilities for an OGC-Webservice <u>prior</u> to the
040     * <code>OWS Common Implementation Specification 0.2</code>.
041     * <p>
042     * It consists of the following parts:<table border="1">
043     * <tr>
044     * <th>Name</th>
045     * <th>Occurences</th>
046     * <th>Function</th>
047     * </tr>
048     * <tr>
049     * <td>Service</td>
050     * <td align="center">1</td>
051     * <td>Provides metadata of the service.</td>
052     * </tr>
053     * <tr>
054     * <td>Capability</td>
055     * <td align="center">1</td>
056     * <td>Provides properties and capabilities of the service.</td>
057     * </tr>
058     * </table>
059     *
060     * @author <a href="mailto:mschneider@lat-lon.de">Markus Schneider </a>
061     * @author last edited by: $Author: mschneider $
062     *
063     * @version 2.0, $Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18 Jun 2009) $
064     *
065     * @since 2.0
066     */
067    
068    public abstract class OGCStandardCapabilities extends OGCCapabilities {
069    
070        private Service service = null;
071    
072        private Capability capabilitiy = null;
073    
074        /**
075         * @param version
076         * @param updateSequence
077         * @param service
078         * @param capabilitiy
079         */
080        public OGCStandardCapabilities( String version, String updateSequence, Service service, Capability capabilitiy ) {
081            super( version, updateSequence );
082            this.service = service;
083            this.capabilitiy = capabilitiy;
084        }
085    
086        /**
087         * Returns the Capabilitiy part of the configuration.
088         *
089         * @return the Capabilitiy part of the configuration.
090         */
091        public Capability getCapabilitiy() {
092            return capabilitiy;
093        }
094    
095        /**
096         * Sets the Capabilitiy part of the configuration.
097         *
098         * @param capabilitiy
099         */
100        public void setCapabilitiy( Capability capabilitiy ) {
101            this.capabilitiy = capabilitiy;
102        }
103    
104        /**
105         * Returns the Service part of the configuration.
106         *
107         * @return the Service part of the configuration.
108         */
109        public Service getService() {
110            return service;
111        }
112    
113        /**
114         * Sets the Service part of the configuration.
115         *
116         * @param service
117         */
118        public void setService( Service service ) {
119            this.service = service;
120        }
121    
122    }