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