001 //$HeadURL: http://svn.wald.intevation.org/svn/deegree/base/trunk/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: apoth $ 062 * 063 * @version 2.0, $Revision: 29654 $, $Date: 2011-02-11 17:14:02 +0100 (Fri, 11 Feb 2011) $ 064 * 065 * @since 2.0 066 */ 067 068 public abstract class OGCStandardCapabilities extends OGCCapabilities { 069 070 private static final long serialVersionUID = -5476562066676740906L; 071 072 private Service service = null; 073 074 private Capability capabilitiy = null; 075 076 /** 077 * @param version 078 * @param updateSequence 079 * @param service 080 * @param capabilitiy 081 */ 082 public OGCStandardCapabilities( String version, String updateSequence, Service service, Capability capabilitiy ) { 083 super( version, updateSequence ); 084 this.service = service; 085 this.capabilitiy = capabilitiy; 086 } 087 088 /** 089 * Returns the Capabilitiy part of the configuration. 090 * 091 * @return the Capabilitiy part of the configuration. 092 */ 093 public Capability getCapabilitiy() { 094 return capabilitiy; 095 } 096 097 /** 098 * Sets the Capabilitiy part of the configuration. 099 * 100 * @param capabilitiy 101 */ 102 public void setCapabilitiy( Capability capabilitiy ) { 103 this.capabilitiy = capabilitiy; 104 } 105 106 /** 107 * Returns the Service part of the configuration. 108 * 109 * @return the Service part of the configuration. 110 */ 111 public Service getService() { 112 return service; 113 } 114 115 /** 116 * Sets the Service part of the configuration. 117 * 118 * @param service 119 */ 120 public void setService( Service service ) { 121 this.service = service; 122 } 123 124 }