001 // $HeadURL: svn+ssh://rbezema@svn.wald.intevation.org/deegree/base/branches/2.2_testing/src/org/deegree/ogcbase/CommonNamespaces.java $ 002 /*---------------- FILE HEADER ------------------------------------------ 003 004 This file is part of deegree. 005 Copyright (C) 2001-2008 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.ogcbase; 045 046 import java.net.URI; 047 import java.net.URISyntaxException; 048 049 import org.deegree.framework.util.BootLogger; 050 import org.deegree.framework.xml.NamespaceContext; 051 052 /** 053 * Definitions for OGC related namespace bindings. 054 * <p> 055 * NOTE: Don't put project specific bindings here -- subclass it and override 056 * {@link #getNamespaceContext()} instead. 057 * 058 * @author <a href="mailto:poth@lat-lon.de">Andreas Poth</a> 059 * @author <a href="mailto:schneider@lat-lon.de">Markus Schneider</a> 060 * @author <a href="mailto:tfriebe@sf.net">Torsten Friebe</a> 061 * @author last edited by: $Author: lbuesching $ 062 * 063 * @version $Revision: 9577 $, $Date: 2008-01-16 17:21:43 +0100 (Mi, 16 Jan 2008) $ 064 */ 065 066 // FIXME change ows namespace uri to http://www.opengeospatial.net/ows 067 // output bound to the current ows namesspace uri (http://www.opengis.net/ows) 068 // is not valid against up to date ogc schemas!!!! 069 public class CommonNamespaces { 070 071 // namespaces 072 /** 073 * The XMLNS namespace is currently bound to: "http://www.w3.org/2000/xmlns/" 074 */ 075 public static final URI XMLNS = buildNSURI( "http://www.w3.org/2000/xmlns/" ); 076 077 /** 078 * The SMLNS namespace is currently bound to: "http://www.opengis.net/sensorML" 079 */ 080 public static final URI SMLNS = buildNSURI( "http://www.opengis.net/sensorML" ); 081 082 /** 083 * The SOSNS namespace is currently bound to: "http://www.opengis.net/sos" 084 */ 085 public static final URI SOSNS = buildNSURI( "http://www.opengis.net/sos" ); 086 087 /** 088 * The CSWNS namespace is currently bound to: "http://www.opengis.net/cat/csw" 089 */ 090 public static final URI CSWNS = buildNSURI( "http://www.opengis.net/cat/csw" ); 091 092 /** 093 * The CSWNS 2.0.2 namespace is currently bound to: "http://www.opengis.net/cat/csw/2.0.2" 094 */ 095 public static final URI CSW202NS = buildNSURI( "http://www.opengis.net/cat/csw/2.0.2" ); 096 097 /** 098 * The GMLNS namespace is currently bound to: "http://www.opengis.net/gml" 099 */ 100 public static final URI GMLNS = buildNSURI( "http://www.opengis.net/gml" ); 101 102 /** 103 * The CITYGMLNS namespace is currently bound to: "http://www.citygml.org/citygml/1/0/0". 104 */ 105 public static final URI CITYGMLNS = buildNSURI( "http://www.citygml.org/citygml/1/0/0" ); 106 107 /** 108 * The WFSNS namespace is currently bound to: "http://www.opengis.net/wfs" 109 */ 110 public static final URI WFSNS = buildNSURI( "http://www.opengis.net/wfs" ); 111 112 /** 113 * The WFSGNS namespace is currently bound to: "http://www.opengis.net/wfs-g" 114 */ 115 public static final URI WFSGNS = buildNSURI( "http://www.opengis.net/wfs-g" ); 116 117 /** 118 * The WCSNS namespace is currently bound to: "http://www.opengis.net/wcs" 119 */ 120 public static final URI WCSNS = buildNSURI( "http://www.opengis.net/wcs" ); 121 122 /** 123 * The WMSNS namespace is currently bound to: "http://www.opengis.net/wms" 124 */ 125 public static final URI WMSNS = buildNSURI( "http://www.opengis.net/wms" ); 126 127 /** 128 * The WMPSNS namespace is currently bound to: "http://www.opengis.net/wmps" 129 */ 130 public static final URI WMPSNS = buildNSURI( "http://www.opengis.net/wmps" ); 131 132 /** 133 * The WPVSNS namespace is currently bound to: "http://www.opengis.net/wpvs" 134 */ 135 public static final URI WPVSNS = buildNSURI( "http://www.opengis.net/wpvs" ); 136 137 /** 138 * The WPSNS namespace is currently bound to: "http://www.opengeospatial.net/wps" 139 */ 140 public static final URI WPSNS = buildNSURI( "http://www.opengeospatial.net/wps" ); 141 142 /** 143 * The OGCNS namespace is currently bound to: "http://www.opengis.net/ogc" 144 */ 145 public static final URI OGCNS = buildNSURI( "http://www.opengis.net/ogc" ); 146 147 /** 148 * The OWSNS namespace is currently bound to: "http://www.opengis.net/ows" 149 */ 150 public static final URI OWSNS = buildNSURI( "http://www.opengis.net/ows" ); 151 152 /** 153 * The SLDNS namespace is currently bound to: "http://www.opengis.net/sld" 154 */ 155 public static final URI SLDNS = buildNSURI( "http://www.opengis.net/sld" ); 156 157 /** 158 * The SENS namespace is currently bound to: "http://www.opengis.net/se" 159 */ 160 public static final URI SENS = buildNSURI( "http://www.opengis.net/se" ); 161 162 /** 163 * The OMNS namespace is currently bound to: "http://www.opengis.net/om" 164 */ 165 public static final URI OMNS = buildNSURI( "http://www.opengis.net/om" ); 166 167 /** 168 * The XLNNS namespace is currently bound to: "http://www.w3.org/1999/xlink" 169 */ 170 public static final URI XLNNS = buildNSURI( "http://www.w3.org/1999/xlink" ); 171 172 /** 173 * The CNTXTNS namespace is currently bound to: "http://www.opengis.net/context" 174 */ 175 public static final URI CNTXTNS = buildNSURI( "http://www.opengis.net/context" ); 176 177 /** 178 * The DGCNTXTNS namespace is currently bound to: "http://www.deegree.org/context" 179 */ 180 public static final URI DGCNTXTNS = buildNSURI( "http://www.deegree.org/context" ); 181 182 /** 183 * The DEEGREEWFS namespace is currently bound to: "http://www.deegree.org/wfs" 184 */ 185 public static final URI DEEGREEWFS = buildNSURI( "http://www.deegree.org/wfs" ); 186 187 /** 188 * The DEEGREEWMS namespace is currently bound to: "http://www.deegree.org/wms" 189 */ 190 public static final URI DEEGREEWMS = buildNSURI( "http://www.deegree.org/wms" ); 191 192 /** 193 * The DEEGREEWCS namespace is currently bound to: "http://www.deegree.org/wcs" 194 */ 195 public static final URI DEEGREEWCS = buildNSURI( "http://www.deegree.org/wcs" ); 196 197 /** 198 * The DEEGREECSW namespace is currently bound to: "http://www.deegree.org/csw" 199 */ 200 public static final URI DEEGREECSW = buildNSURI( "http://www.deegree.org/csw" ); 201 202 /** 203 * The DEEGREESOS namespace is currently bound to: "http://www.deegree.org/sos" 204 */ 205 public static final URI DEEGREESOS = buildNSURI( "http://www.deegree.org/sos" ); 206 207 /** 208 * The DEEGREEWAS namespace is currently bound to: "http://www.deegree.org/was" 209 */ 210 public static final URI DEEGREEWAS = buildNSURI( "http://www.deegree.org/was" ); 211 212 /** 213 * The DEEGREEWSS namespace is currently bound to: "http://www.deegree.org/wss" 214 */ 215 public static final URI DEEGREEWSS = buildNSURI( "http://www.deegree.org/wss" ); 216 217 /** 218 * The DEEGREEWMPS namespace is currently bound to: "http://www.deegree.org/wmps" 219 */ 220 public static final URI DEEGREEWMPS = buildNSURI( "http://www.deegree.org/wmps" ); 221 222 /** 223 * The DEEGREEWPVS namespace is currently bound to: "http://www.deegree.org/wpvs" 224 */ 225 public static final URI DEEGREEWPVS = buildNSURI( "http://www.deegree.org/wpvs" ); 226 227 /** 228 * The DEEGREEWPS namespace is currently bound to: "http://www.deegree.org/wps" 229 */ 230 public static final URI DEEGREEWPS = buildNSURI( "http://www.deegree.org/wps" ); 231 232 /** 233 * The DGJDBC namespace is currently bound to: "http://www.deegree.org/jdbc" 234 */ 235 public static final URI DGJDBC = buildNSURI( "http://www.deegree.org/jdbc" ); 236 237 /** 238 * The DGSECNS namespace is currently bound to: "http://www.deegree.org/security" 239 */ 240 public static final URI DGSECNS = buildNSURI( "http://www.deegree.org/security" ); 241 242 /** 243 * The ISO19112NS namespace is currently bound to: "http://www.opengis.net/iso19112" 244 */ 245 public static final URI ISO19112NS = buildNSURI( "http://www.opengis.net/iso19112" ); 246 247 /** 248 * The ISO19115NS namespace is currently bound to: "http://schemas.opengis.net/iso19115full" 249 */ 250 public static final URI ISO19115NS = buildNSURI( "http://schemas.opengis.net/iso19115full" ); 251 252 /** 253 * The ISO19115BRIEFNS namespace is currently bound to: 254 * "http://schemas.opengis.net/iso19115brief" 255 */ 256 public static final URI ISO19115BRIEFNS = buildNSURI( "http://schemas.opengis.net/iso19115brief" ); 257 258 /** 259 * The ISO19119NS namespace is currently bound to: "http://schemas.opengis.net/iso19119" 260 */ 261 public static final URI ISO19119NS = buildNSURI( "http://schemas.opengis.net/iso19119" ); 262 263 /** 264 * The DCNS namespace is currently bound to: "http://purl.org/dc/elements/1.1/" 265 */ 266 public static final URI DCNS = buildNSURI( "http://purl.org/dc/elements/1.1/" ); 267 268 /** 269 * The GDINRW_WSS namespace is currently bound to: "http://www.gdi-nrw.org/wss" 270 */ 271 public static final URI GDINRW_WSS = buildNSURI( "http://www.gdi-nrw.org/wss" ); 272 273 /** 274 * The GDINRW_WAS namespace is currently bound to: "http://www.gdi-nrw.org/was" 275 */ 276 public static final URI GDINRW_WAS = buildNSURI( "http://www.gdi-nrw.org/was" ); 277 278 /** 279 * The WSSSESSIONNS namespace is currently bound to: "http://www.gdi-nrw.org/session" 280 */ 281 public static final URI WSSSESSIONNS = buildNSURI( "http://www.gdi-nrw.org/session" ); 282 283 /** 284 * The XSNS namespace is currently bound to: "http://www.w3.org/2001/XMLSchema" 285 */ 286 public static final URI XSNS = buildNSURI( "http://www.w3.org/2001/XMLSchema" ); 287 288 /** 289 * The XSINS namespace is currently bound to: "http://www.w3.org/2001/XMLSchema-instance" 290 */ 291 public static final URI XSINS = buildNSURI( "http://www.w3.org/2001/XMLSchema-instance" ); 292 293 /** 294 * The SMXMLNS namespace is currently bound to: "http://metadata.dgiwg.org/smXML" 295 */ 296 public static final URI SMXMLNS = buildNSURI( "http://metadata.dgiwg.org/smXML" ); 297 298 /** 299 * THE CTL namespace is currently bound to: "http://www.occamlab.com/ctl". 300 */ 301 public static final URI CTLNS = buildNSURI( "http://www.occamlab.com/ctl" ); 302 303 /** 304 * The XSL namespace is currently bound to: "http://www.w3.org/1999/XSL/Transform". 305 */ 306 public static final URI XSLNS = buildNSURI( "http://www.w3.org/1999/XSL/Transform" ); 307 308 /** 309 * The PARSERS namespace is currently bound to: "http://www.occamlab.com/te/parsers". 310 */ 311 public static final URI PARSERSNS = buildNSURI( "http://www.occamlab.com/te/parsers" ); 312 313 /** 314 * The GDINRW_AUTH namespace is currently bound to: "http://www.gdi-nrw.org/authentication" 315 */ 316 public static final URI GDINRW_AUTH = buildNSURI( "http://www.gdi-nrw.org/authentication" ); 317 318 /** 319 * The GDINRW_SESSION namespace is currently bound to: "http://www.gdi-nrw.org/session" 320 */ 321 public static final URI GDINRW_SESSION = buildNSURI( "http://www.gdi-nrw.org/session" ); 322 323 /** 324 * The WRS namespace is currently bound to: "http://www.opengis.net/cat/wrs" 325 */ 326 public static final URI WRS_EBRIMNS = buildNSURI( "http://www.opengis.net/cat/wrs" ); 327 328 /** 329 * The OASIS namespace is currently bound to: "urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0" 330 */ 331 public static final URI OASIS_EBRIMNS = buildNSURI( "urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0" ); 332 333 /** 334 * The W3SOAP_ENVELOPE namespace is currently bound to: 335 * "http://www.w3.org/2003/05/soap-envelope" 336 */ 337 public static final URI W3SOAP_ENVELOPE = buildNSURI( "http://www.w3.org/2003/05/soap-envelope" ); 338 339 /** 340 * The XPLANNS namespace is currently bound to: "http://www.xplanung.de/xplangml" 341 */ 342 public static final URI XPLANNS = buildNSURI( "http://www.xplanung.de/xplangml" ); 343 344 /** 345 * The ISOAP10GMDNS namespace is currently bound to: "http://www.isotc211.org/2005/gmd" 346 */ 347 public static final URI ISOAP10GMDNS = buildNSURI( "http://www.isotc211.org/2005/gmd" ); 348 349 /** 350 * The CRSNS namespace --used for the crs package-- is currently bound to: "http://www.deegree.org/crs" 351 */ 352 public static final URI CRSNS = buildNSURI( "http://www.deegree.org/crs" ); 353 354 /** 355 * The ISOAP10GCONS namespace is currently bound to: "http://www.isotc211.org/2005/gco" 356 */ 357 public static final URI ISOAP10GCONS = buildNSURI( "http://www.isotc211.org/2005/gco" ); 358 359 /** 360 * The OWSNS_1_1_0 namespace is currently bound to: "http://www.opengis.net/ows/1.1" 361 */ 362 public static final URI OWSNS_1_1_0 = buildNSURI( "http://www.opengis.net/ows/1.1" ); 363 364 /** 365 * The WCTSNS namespace is currently bound to: "http://www.opengis.net/wcts/0.0" 366 */ 367 public static final URI WCTSNS = buildNSURI( "http://www.opengis.net/wcts/0.0" ); 368 369 /** 370 * The WCSNS_1_2_0 namespace is currently bound to: "http://www.opengis.net/wcs/1.2" 371 */ 372 public static final URI WCSNS_1_2_0 = buildNSURI( "http://www.opengis.net/wcs/1.2" ); 373 374 /** 375 * The APISO namespace is currently bound to: "http://www.opengis.net/cat/csw/apiso/1.0" 376 */ 377 public static final URI APISO = buildNSURI( "http://www.opengis.net/cat/csw/apiso/1.0" ); 378 379 // prefixes 380 /** 381 * The SML prefix is currently assigned to: "sml" 382 */ 383 public static final String SML_PREFIX = "sml"; 384 385 /** 386 * The SOS prefix is currently assigned to: "sos" 387 */ 388 public static final String SOS_PREFIX = "sos"; 389 390 /** 391 * The CSW prefix is currently assigned to: "csw" 392 */ 393 public static final String CSW_PREFIX = "csw"; 394 395 /** 396 * The CSW 2.0.2 prefix is currently assigned to: "csw202" 397 */ 398 public static final String CSW202_PREFIX = "csw202"; 399 400 /** 401 * The GML prefix is currently assigned to: "gml" 402 */ 403 public static final String GML_PREFIX = "gml"; 404 405 /** 406 * The CITYGML prefix is currently assigned to: "citygml". 407 */ 408 public static final String CITYGML_PREFIX = "citygml"; 409 410 /** 411 * The WFS prefix is currently assigned to: "wfs" 412 */ 413 public static final String WFS_PREFIX = "wfs"; 414 415 /** 416 * The WFSG prefix is currently assigned to: "wfsg" 417 */ 418 public static final String WFSG_PREFIX = "wfsg"; 419 420 /** 421 * The WCS prefix is currently assigned to: "wcs" 422 */ 423 public static final String WCS_PREFIX = "wcs"; 424 425 /** 426 * The WMS prefix is currently assigned to: "wms" 427 */ 428 public static final String WMS_PREFIX = "wms"; 429 430 /** 431 * The WPVS prefix is currently assigned to: "wpvs" 432 */ 433 public static final String WPVS_PREFIX = "wpvs"; 434 435 /** 436 * The WMPS prefix is currently assigned to: "wmps" 437 */ 438 public static final String WMPS_PREFIX = "wmps"; 439 440 /** 441 * The WPS prefix is currently assigned to: "wps" 442 */ 443 public static final String WPS_PREFIX = "wps"; 444 445 /** 446 * The OGC prefix is currently assigned to: "ogc" 447 */ 448 public static final String OGC_PREFIX = "ogc"; 449 450 /** 451 * The OWS prefix is currently assigned to: "ows" 452 */ 453 public static final String OWS_PREFIX = "ows"; 454 455 /** 456 * The SLD prefix is currently assigned to: "sld" 457 */ 458 public static final String SLD_PREFIX = "sld"; 459 460 /** 461 * The SE prefix is currently assigned to: "se". 462 */ 463 public static final String SE_PREFIX = "se"; 464 465 /** 466 * The XLINK prefix is currently assigned to: "xlink" 467 */ 468 public static final String XLINK_PREFIX = "xlink"; 469 470 /** 471 * The XMLNS prefix is currently assigned to: "xmlns" 472 */ 473 public static final String XMLNS_PREFIX = "xmlns"; 474 475 /** 476 * The XS prefix is currently assigned to: "xs" 477 */ 478 public static final String XS_PREFIX = "xs"; 479 480 /** 481 * The XSI prefix is currently assigned to: "xsi" 482 */ 483 public static final String XSI_PREFIX = "xsi"; 484 485 /** 486 * The CNTXT prefix is currently assigned to: "cntxt" 487 */ 488 public static final String CNTXT_PREFIX = "cntxt"; 489 490 /** 491 * The DGCNTXT prefix is currently assigned to: "dgcntxt" 492 */ 493 public static final String DGCNTXT_PREFIX = "dgcntxt"; 494 495 /** 496 * The DEEGREEWFS prefix is currently assigned to: "deegreewfs" 497 */ 498 public static final String DEEGREEWFS_PREFIX = "deegreewfs"; 499 500 /** 501 * The DEEGREEWMS prefix is currently assigned to: "deegreewms" 502 */ 503 public static final String DEEGREEWMS_PREFIX = "deegreewms"; 504 505 /** 506 * The DEEGREEWCS prefix is currently assigned to: "deegreewcs" 507 */ 508 public static final String DEEGREEWCS_PREFIX = "deegreewcs"; 509 510 /** 511 * The DEEGREECSW prefix is currently assigned to: "deegreecsw" 512 */ 513 public static final String DEEGREECSW_PREFIX = "deegreecsw"; 514 515 /** 516 * The DEEGREESOS prefix is currently assigned to: "deegreesos" 517 */ 518 public static final String DEEGREESOS_PREFIX = "deegreesos"; 519 520 /** 521 * The DEEGREEWAS prefix is currently assigned to: "deegreewas" 522 */ 523 public static final String DEEGREEWAS_PREFIX = "deegreewas"; 524 525 /** 526 * The DEEGREEWSS prefix is currently assigned to: "deegreewss" 527 */ 528 public static final String DEEGREEWSS_PREFIX = "deegreewss"; 529 530 /** 531 * The DEEGREEWMPS prefix is currently assigned to: "deegreewmps" 532 */ 533 public static final String DEEGREEWMPS_PREFIX = "deegreewmps"; 534 535 /** 536 * The DEEGREEWPS prefix is currently assigned to: "deegreewps" 537 */ 538 public static final String DEEGREEWPS_PREFIX = "deegreewps"; 539 540 /** 541 * The DEEGREEWPVS prefix is currently assigned to: "deegreewpvs" 542 */ 543 public static final String DEEGREEWPVS_PREFIX = "deegreewpvs"; 544 545 /** 546 * The DGJDBC prefix is currently assigned to: "dgjdbc" 547 */ 548 public static final String DGJDBC_PREFIX = "dgjdbc"; 549 550 /** 551 * The DGSEC prefix is currently assigned to: "dgsec" 552 */ 553 public static final String DGSEC_PREFIX = "dgsec"; 554 555 /** 556 * The ISO19112 prefix is currently assigned to: "iso19112" 557 */ 558 public static final String ISO19112_PREFIX = "iso19112"; 559 560 /** 561 * The ISO19115 prefix is currently assigned to: "iso19115" 562 */ 563 public static final String ISO19115_PREFIX = "iso19115"; 564 565 /** 566 * The ISO19115BRIEF prefix is currently assigned to: "iso19115brief" 567 */ 568 public static final String ISO19115BRIEF_PREFIX = "iso19115brief"; 569 570 /** 571 * The ISO19119 prefix is currently assigned to: "iso19119" 572 */ 573 public static final String ISO19119_PREFIX = "iso19119"; 574 575 /** 576 * The DC prefix is currently assigned to: "dc" 577 */ 578 public static final String DC_PREFIX = "dc"; 579 580 /** 581 * The GDINRWWSS prefix is currently assigned to: "wss" 582 */ 583 public static final String GDINRWWSS_PREFIX = "wss"; 584 585 /** 586 * The GDINRWWAS prefix is currently assigned to: "was" 587 */ 588 public static final String GDINRWWAS_PREFIX = "was"; 589 590 /** 591 * The WSSSESSION prefix is currently assigned to: "wsssession" 592 */ 593 public static final String WSSSESSION_PREFIX = "wsssession"; 594 595 /** 596 * The OMNS prefix is currently assigned to: "om" 597 */ 598 public static final String OMNS_PREFIX = "om"; 599 600 /** 601 * The SMXML prefix is currently assigned to: "smXML" 602 */ 603 public static final String SMXML_PREFIX = "smXML"; 604 605 /** 606 * The CTL prefix is currently assigned to: "ctl" 607 */ 608 public static final String CTL_PREFIX = "ctl"; 609 610 /** 611 * The CTL prefix is currently assigned to: "xsl" 612 */ 613 public static final String XSL_PREFIX = "xsl"; 614 615 /** 616 * The CTL prefix is currently assigned to: "parsers" 617 */ 618 public static final String PARSERS_PREFIX = "parsers"; 619 620 /** 621 * The GDINRW_AUTH prefix is currently assigned to: "authn" 622 */ 623 public static final String GDINRW_AUTH_PREFIX = "authn"; 624 625 /** 626 * The GDINRW_SESSION prefix is currently assigned to: "sessn" 627 */ 628 public static final String GDINRW_SESSION_PREFIX = "sessn"; 629 630 /** 631 * The GDINRW_SESSION prefix is currently assigned to: "wrs" 632 */ 633 public static final String WRS_EBRIM_PREFIX = "wrs"; 634 635 /** 636 * The OASIS_EBRIM prefix is currently assigned to: "rim" 637 */ 638 public static final String OASIS_EBRIM_PREFIX = "rim"; 639 640 /** 641 * The W3SOAP_ENVELOPE prefix is currently assigned to: "soap" 642 */ 643 public static final String W3SOAP_ENVELOPE_PREFIX = "soap"; 644 645 /** 646 * The XPLAN_PREFIX is currrently assigned to: "xplan" 647 */ 648 public static final String XPLAN_PREFIX = "xplan"; 649 650 /** 651 * The ISOAP10GMD_PREFIX is currrently assigned to: "gmd" 652 */ 653 public static final String ISOAP10GMD_PREFIX = "gmd"; 654 655 /** 656 * The ISOAP10GCO_PREFIX is currrently assigned to: "gco" 657 */ 658 public static final String ISOAP10GCO_PREFIX = "gco"; 659 660 /** 661 * The CRS_PREFIX is currrently assigned to: "crs" 662 */ 663 public static final String CRS_PREFIX = "crs"; 664 665 /** 666 * The OWS_1_1_0PREFIX is currrently assigned to: "ows_1_1_0" 667 */ 668 public static final String OWS_1_1_0PREFIX = "ows_1_1_0"; 669 670 /** 671 * The WCTS_PREFIX is currrently assigned to: "wcts" 672 */ 673 public static final String WCTS_PREFIX = "wcts"; 674 675 /** 676 * The WCS_1_2_0_PREFIX is currrently assigned to: "wcs_1_2_0" 677 */ 678 public static final String WCS_1_2_0_PREFIX = "wcs_1_2_0"; 679 680 /** 681 * The APISO_PREFIX is currrently assigned to: "apiso" 682 */ 683 public static final String APISO_PREFIX = "apiso"; 684 685 private static NamespaceContext nsContext = null; 686 687 /** 688 * @param namespace 689 * @return Returns the uri for the passed namespace. 690 */ 691 public static URI buildNSURI( String namespace ) { 692 URI uri = null; 693 try { 694 uri = new URI( namespace ); 695 } catch ( URISyntaxException e ) { 696 BootLogger.logError( "Invalid common namespace URI '" + namespace + "':" + e.getMessage(), e ); 697 } 698 return uri; 699 } 700 701 /** 702 * Returns the <code>NamespaceContext</code> for common namespaces known be deegree. 703 * 704 * @return the NamespaceContext for all common namespaces 705 */ 706 public static synchronized NamespaceContext getNamespaceContext() { 707 if ( nsContext == null ) { 708 nsContext = new NamespaceContext(); 709 nsContext.addNamespace( SML_PREFIX, SMLNS ); 710 nsContext.addNamespace( SOS_PREFIX, SOSNS ); 711 nsContext.addNamespace( CSW_PREFIX, CSWNS ); 712 nsContext.addNamespace( CSW202_PREFIX, CSW202NS ); 713 nsContext.addNamespace( GML_PREFIX, GMLNS ); 714 nsContext.addNamespace( CITYGML_PREFIX, CITYGMLNS ); 715 nsContext.addNamespace( WFS_PREFIX, WFSNS ); 716 nsContext.addNamespace( WFSG_PREFIX, WFSGNS ); 717 nsContext.addNamespace( WCS_PREFIX, WCSNS ); 718 nsContext.addNamespace( WMS_PREFIX, WMSNS ); 719 nsContext.addNamespace( WPVS_PREFIX, WMPSNS ); 720 nsContext.addNamespace( WPVS_PREFIX, WPVSNS ); 721 nsContext.addNamespace( WPS_PREFIX, WPSNS ); 722 nsContext.addNamespace( OGC_PREFIX, OGCNS ); 723 nsContext.addNamespace( OWS_PREFIX, OWSNS ); 724 nsContext.addNamespace( SLD_PREFIX, SLDNS ); 725 nsContext.addNamespace( SE_PREFIX, SENS ); 726 nsContext.addNamespace( XLINK_PREFIX, XLNNS ); 727 nsContext.addNamespace( XS_PREFIX, XSNS ); 728 nsContext.addNamespace( XSI_PREFIX, XSINS ); 729 nsContext.addNamespace( CNTXT_PREFIX, CNTXTNS ); 730 nsContext.addNamespace( DGCNTXT_PREFIX, DGCNTXTNS ); 731 nsContext.addNamespace( DEEGREEWFS_PREFIX, DEEGREEWFS ); 732 nsContext.addNamespace( DEEGREEWMS_PREFIX, DEEGREEWMS ); 733 nsContext.addNamespace( DEEGREEWCS_PREFIX, DEEGREEWCS ); 734 nsContext.addNamespace( DEEGREECSW_PREFIX, DEEGREECSW ); 735 nsContext.addNamespace( DEEGREESOS_PREFIX, DEEGREESOS ); 736 nsContext.addNamespace( DEEGREEWAS_PREFIX, DEEGREEWAS ); 737 nsContext.addNamespace( DEEGREEWSS_PREFIX, DEEGREEWSS ); 738 nsContext.addNamespace( DEEGREEWPVS_PREFIX, DEEGREEWPVS ); 739 nsContext.addNamespace( DEEGREEWMPS_PREFIX, DEEGREEWMPS ); 740 nsContext.addNamespace( DEEGREEWPS_PREFIX, DEEGREEWPS ); 741 nsContext.addNamespace( DGSEC_PREFIX, DGSECNS ); 742 nsContext.addNamespace( DGJDBC_PREFIX, DGJDBC ); 743 nsContext.addNamespace( ISO19112_PREFIX, ISO19112NS ); 744 nsContext.addNamespace( ISO19115_PREFIX, ISO19115NS ); 745 nsContext.addNamespace( ISO19115BRIEF_PREFIX, ISO19115BRIEFNS ); 746 nsContext.addNamespace( ISO19119_PREFIX, ISO19119NS ); 747 nsContext.addNamespace( DC_PREFIX, DCNS ); 748 nsContext.addNamespace( WSSSESSION_PREFIX, WSSSESSIONNS ); 749 nsContext.addNamespace( GDINRWWAS_PREFIX, GDINRW_WAS ); 750 nsContext.addNamespace( GDINRWWSS_PREFIX, GDINRW_WSS ); 751 nsContext.addNamespace( OMNS_PREFIX, OMNS ); 752 nsContext.addNamespace( SMXML_PREFIX, SMXMLNS ); 753 nsContext.addNamespace( GDINRW_AUTH_PREFIX, GDINRW_AUTH ); 754 nsContext.addNamespace( CTL_PREFIX, CTLNS ); 755 nsContext.addNamespace( XSL_PREFIX, XSLNS ); 756 nsContext.addNamespace( PARSERS_PREFIX, PARSERSNS ); 757 nsContext.addNamespace( WRS_EBRIM_PREFIX, WRS_EBRIMNS ); 758 nsContext.addNamespace( OASIS_EBRIM_PREFIX, OASIS_EBRIMNS ); 759 nsContext.addNamespace( W3SOAP_ENVELOPE_PREFIX, W3SOAP_ENVELOPE ); 760 nsContext.addNamespace( XPLAN_PREFIX, XPLANNS ); 761 nsContext.addNamespace( CRS_PREFIX, CRSNS ); 762 nsContext.addNamespace( ISOAP10GMD_PREFIX, ISOAP10GMDNS ); 763 nsContext.addNamespace( ISOAP10GCO_PREFIX, ISOAP10GCONS ); 764 nsContext.addNamespace( OWS_1_1_0PREFIX, OWSNS_1_1_0 ); 765 nsContext.addNamespace( WCTS_PREFIX, WCTSNS ); 766 nsContext.addNamespace( WCS_1_2_0_PREFIX, WCSNS_1_2_0 ); 767 nsContext.addNamespace( APISO_PREFIX, APISO ); 768 } 769 return nsContext; 770 } 771 772 @Override 773 public String toString() { 774 return nsContext.getURI( WPS_PREFIX ).toString(); 775 } 776 777 }