svn-gvsig-desktop / tmp / trunk / servidor / WorkSpace_Servidor / src / org / tigris / frogs / parser / ows / impl0_3_0 / OWSNamespacePrefixMapperImpl.java @ 26474
History | View | Annotate | Download (1.71 KB)
1 |
/*
|
---|---|
2 |
* ============================================================================
|
3 |
* Copyright 2006 Government of Canada
|
4 |
*
|
5 |
* Licensed under the Apache License, Version 2.0 (the "License");
|
6 |
* you may not use this file except in compliance with the License.
|
7 |
* You may obtain a copy of the License at
|
8 |
*
|
9 |
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
*
|
11 |
* Unless required by applicable law or agreed to in writing, software
|
12 |
* distributed under the License is distributed on an "AS IS" BASIS,
|
13 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 |
* See the License for the specific language governing permissions and
|
15 |
* limitations under the License.
|
16 |
* ============================================================================
|
17 |
*/
|
18 |
/*
|
19 |
$Id: WMSNamespacePrefixMapperImpl.java 4971 2006-07-24 17:58:11Z caronr $
|
20 |
$HeadURL: http://nlwis-ms.agr.gc.ca/data/SVN/RESEARCH/sandbox/frogs/wps-plugin-0.4.0/src/org/tigris/frogs/parser/wpsint/WMSNamespacePrefixMapperImpl.java $
|
21 |
*/
|
22 |
|
23 |
|
24 |
package org.tigris.frogs.parser.ows.impl0_3_0; |
25 |
|
26 |
import org.tigris.frogs.jaxb.NamespacePrefixMapperImpl; |
27 |
|
28 |
|
29 |
/**
|
30 |
* To be documented
|
31 |
*
|
32 |
*/
|
33 |
public class OWSNamespacePrefixMapperImpl extends NamespacePrefixMapperImpl { |
34 |
|
35 |
public String validatePreferredPrefix(String namespaceUri) { |
36 |
|
37 |
// I want this namespace to be mapped to "ows"
|
38 |
if( "http://www.opengis.net/ows".equals(namespaceUri) ) |
39 |
return "ows"; |
40 |
|
41 |
// I want this namespace to be mapped to "xlink"
|
42 |
if( "http://www.w3.org/1999/xlink".equals(namespaceUri) ) |
43 |
return "xlink"; |
44 |
|
45 |
// otherwise I don't care. Just use the default suggestion, whatever it may be.
|
46 |
return ""; |
47 |
} |
48 |
|
49 |
} |