001 // $HeadURL: svn+ssh://rbezema@svn.wald.intevation.org/deegree/base/tags/2.1/src/org/deegree/ogcwebservices/getcapabilities/ServiceIdentification.java $ 002 /*---------------- FILE HEADER ------------------------------------------ 003 004 This file is part of deegree. 005 Copyright (C) 2001-2006 by: 006 EXSE, Department of Geography, University of Bonn 007 http://www.giub.uni-bonn.de/deegree/ 008 lat/lon GmbH 009 http://www.lat-lon.de 010 011 This library is free software; you can redistribute it and/or 012 modify it under the terms of the GNU Lesser General Public 013 License as published by the Free Software Foundation; either 014 version 2.1 of the License, or (at your option) any later version. 015 016 This library is distributed in the hope that it will be useful, 017 but WITHOUT ANY WARRANTY; without even the implied warranty of 018 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 019 Lesser General Public License for more details. 020 021 You should have received a copy of the GNU Lesser General Public 022 License along with this library; if not, write to the Free Software 023 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 024 025 Contact: 026 027 Andreas Poth 028 lat/lon GmbH 029 Aennchenstr. 19 030 53115 Bonn 031 Germany 032 E-Mail: poth@lat-lon.de 033 034 Prof. Dr. Klaus Greve 035 Department of Geography 036 University of Bonn 037 Meckenheimer Allee 166 038 53115 Bonn 039 Germany 040 E-Mail: greve@giub.uni-bonn.de 041 042 043 ---------------------------------------------------------------------------*/ 044 package org.deegree.ogcwebservices.getcapabilities; 045 046 import org.deegree.datatypes.Code; 047 import org.deegree.model.metadata.iso19115.Keywords; 048 049 /** 050 * Represents the <code>ServiceIdentification</code> section of the 051 * capabilities of an OGC compliant web service according to the 052 * <code>OGC Common Implementation Specification 0.2</code>. This section 053 * corresponds to and expands the SV_ServiceIdentification class in ISO 19119. 054 * <p> 055 * It consists of the following elements: <table border="1"> 056 * <tr> 057 * <th>Name</th> 058 * <th>Occurences</th> 059 * <th>Function</th> 060 * </tr> 061 * <tr> 062 * <td>ServiceType</td> 063 * <td align="center">1</td> 064 * <td>Useful to provide service type name useful for machine-to-machine 065 * communication</td> 066 * </tr> 067 * <tr> 068 * <td>ServiceTypeVersion</td> 069 * <td align="center">1-*</td> 070 * <td>Useful to provide list of server-supported versions.</td> 071 * </tr> 072 * <tr> 073 * <td>Title</td> 074 * <td align="center">1</td> 075 * <td>Useful to provide a server title for display to a human.</td> 076 * </tr> 077 * <tr> 078 * <td>Abstract</td> 079 * <td align="center">0|1</td> 080 * <td>Usually useful to provide narrative description of server, useful for 081 * display to a human.</td> 082 * </tr> 083 * <tr> 084 * <td>Keywords</td> 085 * <td align="center">0-*</td> 086 * <td>Often useful to provide keywords useful for server searching.</td> 087 * </tr> 088 * <tr> 089 * <td>Fees</td> 090 * <td align="center">0|1</td> 091 * <td>Usually useful to specify fees, or NONE if no fees.</td> 092 * </tr> 093 * <tr> 094 * <td>AccessConstraints</td> 095 * <td align="center">0-*</td> 096 * <td>Usually useful to specify access constraints, or NONE if no access 097 * constraints.</td> 098 * </tr> 099 * </table> 100 * 101 * @author <a href="mailto:mschneider@lat-lon.de">Markus Schneider </a> 102 * @author last edited by: $Author: bezema $ 103 * 104 * @version $Revision: 6259 $ 105 */ 106 public class ServiceIdentification { 107 108 private String name; 109 110 private Code serviceType; 111 112 private String[] serviceTypeVersions; 113 114 private String title; 115 116 private String serviceAbstract; 117 118 private Keywords[] keywords; 119 120 private String fees; 121 122 private String[] accessConstraints; 123 124 /** 125 * Constructs a new ServiceIdentification object. 126 * 127 * @param serviceType 128 * @param serviceTypeVersions 129 * @param title 130 * @param serviceAbstract 131 * may be null 132 * @param keywords 133 * may be an empty array or null 134 * @param fees 135 * may be null 136 * @param accessConstraints 137 * may be an empty array or null 138 */ 139 public ServiceIdentification( String name, Code serviceType, 140 String[] serviceTypeVersions, String title, String serviceAbstract, 141 Keywords[] keywords, String fees, String[] accessConstraints) { 142 this.name = name; 143 this.serviceType = serviceType; 144 this.serviceTypeVersions = serviceTypeVersions; 145 this.title = title; 146 this.serviceAbstract = serviceAbstract; 147 this.keywords = keywords; 148 this.fees = fees; 149 this.accessConstraints = accessConstraints; 150 } 151 152 /** 153 * Constructs a new ServiceIdentification object. 154 * 155 * @param serviceType 156 * @param serviceTypeVersions 157 * @param title 158 * @param serviceAbstract 159 * may be null 160 * @param keywords 161 * may be an empty array or null 162 * @param fees 163 * may be null 164 * @param accessConstraints 165 * may be an empty array or null 166 */ 167 public ServiceIdentification( Code serviceType, 168 String[] serviceTypeVersions, String title, String serviceAbstract, 169 Keywords[] keywords, String fees, String[] accessConstraints) { 170 this.name = title; 171 this.serviceType = serviceType; 172 this.serviceTypeVersions = serviceTypeVersions; 173 this.title = title; 174 this.serviceAbstract = serviceAbstract; 175 this.keywords = keywords; 176 this.fees = fees; 177 this.accessConstraints = accessConstraints; 178 } 179 180 /** 181 * Returns the java representation of the ServiceType-element. In the XML 182 * document, this element has the type ows:CodeType. 183 * 184 * @return 185 * 186 */ 187 public Code getServiceType() { 188 return serviceType; 189 } 190 191 /** 192 * Returns the java representation of the ServiceTypeVersion-elements. In 193 * the XML document, these elements have the type ows:VersionType. 194 * 195 * @return 196 */ 197 public String[] getServiceTypeVersions() { 198 return serviceTypeVersions; 199 } 200 201 /** 202 * Returns the java representation of the Title-element. In the XML 203 * document, this element has the type string. 204 * 205 * @return 206 */ 207 public String getTitle() { 208 return title; 209 } 210 211 212 /** 213 * Returns the java representation of the Abstract-element. In the XML 214 * document, this element has the type string. 215 * 216 * @return 217 */ 218 public String getAbstract() { 219 return serviceAbstract; 220 } 221 222 /** 223 * Returns the java representation of the Keywords-elements. In the XML 224 * document, these elements have the type ows:Keyword. 225 * 226 * @return 227 */ 228 public Keywords[] getKeywords() { 229 return keywords; 230 } 231 232 /** 233 * Returns the java representation of the AccessConstraints-elements. In the 234 * XML document, these elements have the type string. 235 * 236 * @return 237 */ 238 public String getFees() { 239 return fees; 240 } 241 242 /** 243 * Returns the java representation of the AccessConstraints-elements. In the 244 * XML document, these elements have the type string. 245 * 246 * @return 247 */ 248 public String[] getAccessConstraints() { 249 return accessConstraints; 250 } 251 252 /** 253 * @return Returns the name. 254 */ 255 public String getName() { 256 return name; 257 } 258 259 } 260 261 /* ****************************************************************************** 262 * $Log$ 263 * Revision 1.9 2006/11/07 11:09:54 mschneider 264 * Fixed footer formatting. 265 * 266 * Revision 1.8 2006/08/01 11:46:07 schmitz 267 * Added data classes for the new OWS common capabilities framework 268 * according to the OWS 1.0.0 common specification. 269 * Added name to service identification. 270 * 271 * Revision 1.7 2006/07/12 14:46:16 poth 272 * comment footer added 273 * 274 * Revision 1.6 2006/04/06 20:25:25 poth 275 * *** empty log message *** 276 * 277 * Revision 1.5 2006/04/04 20:39:41 poth 278 * *** empty log message *** 279 * 280 * Revision 1.4 2006/03/30 21:20:25 poth 281 * *** empty log message *** 282 * 283 * Revision 1.3 2005/06/08 15:13:55 poth 284 * no message 285 * 286 * Revision 1.2 2005/01/18 22:08:55 poth 287 * no message 288 * 289 * Revision 1.4 2004/07/12 13:03:21 mschneider 290 * More work on the CatalogConfiguration and capabilities framework. 291 * 292 * Revision 1.3 2004/06/30 15:16:05 mschneider 293 * Refactoring of XMLTools. 294 * 295 * Revision 1.2 2004/06/28 15:40:13 mschneider 296 * Finished the generation of the ServiceIdentification part of the Capabilities from DOM, added functionality to the XMLTools helper class. 297 * 298 ***************************************************************************** */