Class DomXPathNamespaceResolver
java.lang.Object
org.camunda.spin.impl.xml.dom.query.DomXPathNamespaceResolver
- All Implemented Interfaces:
NamespaceContext
Resolves the namespaces of the given element.
- Author:
- Stefan Hentschel
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetNamespaceURI
(String prefix) getPrefixes
(String namespaceURI) void
setNamespace
(String prefix, String namespaceURI) Maps a single prefix, uri pair as namespace.void
setNamespaces
(Map<String, String> namespaces) Maps a map of prefix, uri pairs as namespaces.
-
Field Details
-
namespaces
-
element
-
-
Constructor Details
-
DomXPathNamespaceResolver
-
-
Method Details
-
getNamespaceURI
- Specified by:
getNamespaceURI
in interfaceNamespaceContext
-
getPrefix
- Specified by:
getPrefix
in interfaceNamespaceContext
-
getPrefixes
- Specified by:
getPrefixes
in interfaceNamespaceContext
-
setNamespace
Maps a single prefix, uri pair as namespace.- Parameters:
prefix
- the prefix to usenamespaceURI
- the URI to use- Throws:
IllegalArgumentException
- if prefix or namespaceURI is null
-
setNamespaces
Maps a map of prefix, uri pairs as namespaces.- Parameters:
namespaces
- the map of namespaces- Throws:
IllegalArgumentException
- if namespaces is null
-