001 //$HeadURL: $
002 /*---------------- FILE HEADER ------------------------------------------
003 This file is part of deegree.
004 Copyright (C) 2001-2008 by:
005 Department of Geography, University of Bonn
006 http://www.giub.uni-bonn.de/deegree/
007 lat/lon GmbH
008 http://www.lat-lon.de
009
010 This library is free software; you can redistribute it and/or
011 modify it under the terms of the GNU Lesser General Public
012 License as published by the Free Software Foundation; either
013 version 2.1 of the License, or (at your option) any later version.
014 This library is distributed in the hope that it will be useful,
015 but WITHOUT ANY WARRANTY; without even the implied warranty of
016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
017 Lesser General Public License for more details.
018 You should have received a copy of the GNU Lesser General Public
019 License along with this library; if not, write to the Free Software
020 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
021 Contact:
022
023 Andreas Poth
024 lat/lon GmbH
025 Aennchenstr. 19
026 53177 Bonn
027 Germany
028 E-Mail: poth@lat-lon.de
029
030 Prof. Dr. Klaus Greve
031 Department of Geography
032 University of Bonn
033 Meckenheimer Allee 166
034 53115 Bonn
035 Germany
036 E-Mail: greve@giub.uni-bonn.de
037 ---------------------------------------------------------------------------*/
038
039 package org.deegree.ogcwebservices.csw.capabilities;
040
041 import java.net.URI;
042 import java.util.List;
043 import java.util.Map;
044
045 import org.deegree.datatypes.xlink.SimpleLink;
046 import org.deegree.i18n.Messages;
047
048 /**
049 * The <code>EBRIMCapabilities</code> class encapsulates the extra capabilities of ebrim.
050 *
051 * @author <a href="mailto:bezema@lat-lon.de">Rutger Bezema</a>
052 *
053 * @author last edited by: $Author:$
054 *
055 * @version $Revision:$, $Date:$
056 *
057 */
058
059 public class EBRIMCapabilities {
060
061 private Map<URI, CSWFeature> serviceFeatures;
062
063 private Map<URI, List<String>> serviceProperties;
064
065 private SimpleLink wsdl_services;
066
067 /**
068 * @param serviceFeatures
069 * @param serviceProperties
070 * @param wsdl_services
071 * @throws IllegalArgumentException if any of the given parameters are null.
072 */
073 public EBRIMCapabilities( Map<URI, CSWFeature> serviceFeatures, Map<URI, List<String>> serviceProperties,
074 SimpleLink wsdl_services ) {
075 if( serviceFeatures == null ){
076 throw new IllegalArgumentException( Messages.getMessage( "CSW_EBRIM_NULL_NOT_ALLOWED", "ServiceFeatures" ) );
077 }
078 this.serviceFeatures = serviceFeatures;
079 if( serviceProperties == null ){
080 throw new IllegalArgumentException( Messages.getMessage( "CSW_EBRIM_NULL_NOT_ALLOWED", "ServiceProperties" ) );
081 }
082 this.serviceProperties = serviceProperties;
083 if( wsdl_services == null ){
084 throw new IllegalArgumentException( Messages.getMessage( "CSW_EBRIM_NULL_NOT_ALLOWED", "WSDL_Services" ) );
085 }
086 this.wsdl_services = wsdl_services;
087 }
088
089 /**
090 * @return the serviceFeatures.
091 */
092 public Map<URI, CSWFeature> getServiceFeatures() {
093 return serviceFeatures;
094 }
095
096 /**
097 * @return the serviceProperties.
098 */
099 public Map<URI, List<String>> getServiceProperties() {
100 return serviceProperties;
101 }
102
103 /**
104 * @return the wsdl_services.
105 */
106 public SimpleLink getWsdl_services() {
107 return wsdl_services;
108 }
109
110 }