001 //$HeadURL: https://svn.wald.intevation.org/svn/deegree/base/branches/2.3_testing/src/org/deegree/ogcwebservices/sos/capabilities/SOSCapabilities.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.sos.capabilities;
037
038 import java.io.IOException;
039 import java.net.URL;
040 import java.util.ArrayList;
041
042 import org.deegree.ogcwebservices.getcapabilities.Contents;
043 import org.deegree.ogcwebservices.getcapabilities.InvalidCapabilitiesException;
044 import org.deegree.ogcwebservices.getcapabilities.OGCCapabilities;
045 import org.deegree.ogcwebservices.getcapabilities.OperationsMetadata;
046 import org.deegree.ogcwebservices.getcapabilities.ServiceIdentification;
047 import org.deegree.ogcwebservices.getcapabilities.ServiceProvider;
048 import org.deegree.owscommon.OWSCommonCapabilities;
049 import org.xml.sax.SAXException;
050
051 /**
052 * Represents the SOS Capabilities
053 *
054 * @author <a href="mailto:mkulbe@lat-lon.de">Matthias Kulbe </a>
055 *
056 * @version 1.0
057 */
058
059 public class SOSCapabilities extends OWSCommonCapabilities {
060
061 /**
062 *
063 */
064 private static final long serialVersionUID = -6878980546920553064L;
065
066 private ArrayList<Sensor> sensorList = new ArrayList<Sensor>();
067
068 private ArrayList<Platform> platformList = new ArrayList<Platform>();
069
070 /**
071 * createCapabilities
072 *
073 * @param url
074 * @return the new instance
075 * @throws IOException
076 * @throws SAXException
077 * @throws InvalidCapabilitiesException
078 *
079 */
080 public static OGCCapabilities createCapabilities( URL url )
081 throws IOException, SAXException, InvalidCapabilitiesException {
082 OGCCapabilities capabilities = null;
083 CapabilitiesDocument capabilitiesDoc = new CapabilitiesDocument();
084 capabilitiesDoc.load( url );
085 capabilities = capabilitiesDoc.parseCapabilities();
086 return capabilities;
087 }
088
089 /**
090 *
091 * @param version
092 * @param updateSequence
093 * @param serviceIdentification
094 * @param serviceProvider
095 * @param operationsMetadata
096 * @param contents
097 * @param platformList
098 * @param sensorList
099 */
100 public SOSCapabilities( String version, String updateSequence, ServiceIdentification serviceIdentification,
101 ServiceProvider serviceProvider, OperationsMetadata operationsMetadata, Contents contents,
102 ArrayList<Platform> platformList, ArrayList<Sensor> sensorList ) {
103
104 super( version, updateSequence, serviceIdentification, serviceProvider, operationsMetadata, contents );
105
106 this.platformList = platformList;
107
108 this.sensorList = sensorList;
109 }
110
111 /**
112 *
113 * @return sensorList
114 */
115 public ArrayList<Sensor> getSensorList() {
116 return this.sensorList;
117 }
118
119 /**
120 *
121 * @return platformList
122 */
123 public ArrayList<Platform> getPlatformList() {
124 return this.platformList;
125 }
126
127 }