001    //$HeadURL: $
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    
037    package org.deegree.ogcwebservices.csw.capabilities;
038    
039    import java.net.URI;
040    import java.util.List;
041    import java.util.Map;
042    
043    import org.deegree.datatypes.xlink.SimpleLink;
044    import org.deegree.i18n.Messages;
045    
046    /**
047     * The <code>EBRIMCapabilities</code> class encapsulates the extra capabilities of ebrim.
048     *
049     * @author <a href="mailto:bezema@lat-lon.de">Rutger Bezema</a>
050     *
051     * @author last edited by: $Author:$
052     *
053     * @version $Revision:$, $Date:$
054     *
055     */
056    
057    public class EBRIMCapabilities {
058    
059        private Map<URI, CSWFeature> serviceFeatures;
060    
061        private Map<URI, List<String>> serviceProperties;
062    
063        private SimpleLink wsdl_services;
064    
065        /**
066         * @param serviceFeatures
067         * @param serviceProperties
068         * @param wsdl_services
069         * @throws IllegalArgumentException if any of the given parameters are null.
070         */
071        public EBRIMCapabilities( Map<URI, CSWFeature> serviceFeatures, Map<URI, List<String>> serviceProperties,
072                                  SimpleLink wsdl_services ) {
073            if( serviceFeatures == null ){
074                throw new IllegalArgumentException( Messages.getMessage( "CSW_EBRIM_NULL_NOT_ALLOWED", "ServiceFeatures" )  );
075            }
076            this.serviceFeatures = serviceFeatures;
077            if( serviceProperties == null ){
078                throw new IllegalArgumentException( Messages.getMessage( "CSW_EBRIM_NULL_NOT_ALLOWED", "ServiceProperties" )  );
079            }
080            this.serviceProperties = serviceProperties;
081            if( wsdl_services == null ){
082                throw new IllegalArgumentException( Messages.getMessage( "CSW_EBRIM_NULL_NOT_ALLOWED", "WSDL_Services" )  );
083            }
084            this.wsdl_services = wsdl_services;
085        }
086    
087        /**
088         * @return the serviceFeatures.
089         */
090        public Map<URI, CSWFeature> getServiceFeatures() {
091            return serviceFeatures;
092        }
093    
094        /**
095         * @return the serviceProperties.
096         */
097        public Map<URI, List<String>> getServiceProperties() {
098            return serviceProperties;
099        }
100    
101        /**
102         * @return the wsdl_services.
103         */
104        public SimpleLink getWsdl_services() {
105            return wsdl_services;
106        }
107    
108    }