public class NamespaceBindings extends Object implements NamespaceContext
| Constructor and Description |
|---|
NamespaceBindings() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAllBindings(Map<String,String> nsBindings)
Adds all of the supplied namespace bindings to the existing set of entries.
|
void |
addNamespaceBinding(String namespaceURI,
String prefix)
Adds a namespace binding that associates a namespace name with a prefix.
|
Map<String,String> |
getAllBindings()
Returns an unmodifiable view of the declared namespace bindings.
|
String |
getNamespaceURI(String prefix) |
String |
getPrefix(String namespaceURI) |
Iterator<String> |
getPrefixes(String namespaceURI) |
String |
toString() |
static NamespaceBindings |
withStandardBindings()
Creates a NamespaceBindings object that declares the following namespace bindings:
ows: "http://www.opengis.net/ows/1.1"
xlink: "http://www.w3.org/1999/xlink"
gml: "http://www.opengis.net/gml/3.2"
|
public String getNamespaceURI(String prefix)
getNamespaceURI in interface NamespaceContextpublic String getPrefix(String namespaceURI)
getPrefix in interface NamespaceContextpublic Iterator<String> getPrefixes(String namespaceURI)
getPrefixes in interface NamespaceContextpublic void addNamespaceBinding(String namespaceURI, String prefix)
namespaceURI - A String denoting a namespace name (an absolute URI value).prefix - A prefix associated with the namespace name.public void addAllBindings(Map<String,String> nsBindings)
nsBindings - A Map containing a collection of namespace bindings where the key
is an absolute URI specifying the namespace name and the value denotes the
associated prefix.public Map<String,String> getAllBindings()
public static NamespaceBindings withStandardBindings()
Copyright © 2024 Open Geospatial Consortium. All rights reserved.