Package org.opengis.cite.gpkg12.util
Class NamespaceBindings
java.lang.Object
org.opengis.cite.gpkg12.util.NamespaceBindings
- All Implemented Interfaces:
NamespaceContext
Provides namespace bindings for evaluating XPath 1.0 expressions using the JAXP XPath
API. A namespace name (URI) may be bound to only one prefix.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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.Returns an unmodifiable view of the declared namespace bindings.getNamespaceURI
(String prefix) getPrefixes
(String namespaceURI) toString()
static NamespaceBindings
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"
-
Constructor Details
-
NamespaceBindings
public NamespaceBindings()
-
-
Method Details
-
getNamespaceURI
- Specified by:
getNamespaceURI
in interfaceNamespaceContext
-
getPrefix
- Specified by:
getPrefix
in interfaceNamespaceContext
-
getPrefixes
- Specified by:
getPrefixes
in interfaceNamespaceContext
-
addNamespaceBinding
Adds a namespace binding that associates a namespace name with a prefix. If a binding for a given namespace name already exists it will be replaced.- Parameters:
namespaceURI
- A String denoting a namespace name (an absolute URI value).prefix
- A prefix associated with the namespace name.
-
addAllBindings
Adds all of the supplied namespace bindings to the existing set of entries.- Parameters:
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.
-
getAllBindings
Returns an unmodifiable view of the declared namespace bindings.- Returns:
- An immutable Map containing zero or more namespace bindings where the key is an absolute URI specifying the namespace name and the value is the associated prefix.
-
withStandardBindings
Creates a NamespaceBindings object that declares the following namespace bindings:- Returns:
- A NamespaceBindings object.
-
toString
-