java.lang.Object
org.apache.xml.security.utils.DOMNamespaceContext
- All Implemented Interfaces:
NamespaceContext
This class adapts the
Node namespace/prefix lookup API to that of NamespaceContext.
There are some differences:
| Function | NamespaceContext API |
Node API |
|---|---|---|
| Look up the prefix for a given namespace URI. | NamespaceContext.getPrefix(String) |
Node.lookupPrefix(String) |
| Look up all the prefixes for a given namespace URI. | NamespaceContext.getPrefixes(String) |
/ |
| Look up the namespace URI for a given prefix. | NamespaceContext.getNamespaceURI(String) |
Node.lookupNamespaceURI(String) |
| The default prefix. | XMLConstants.DEFAULT_NS_PREFIX |
null |
| The default namespace URI. | XMLConstants.NULL_NS_URI |
null |
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetNamespaceURI(String prefix) getPrefixes(String namespaceURI) ThrowsUnsupportedOperationException.voidsetContext(Node context)
-
Constructor Details
-
DOMNamespaceContext
-
-
Method Details
-
setContext
-
getNamespaceURI
- Specified by:
getNamespaceURIin interfaceNamespaceContext
-
getPrefix
- Specified by:
getPrefixin interfaceNamespaceContext
-
getPrefixes
ThrowsUnsupportedOperationException.- Specified by:
getPrefixesin interfaceNamespaceContext
-