public static class XmlUtil.UniversalNamespaceCache extends Object implements NamespaceContext
Constructor and Description |
---|
UniversalNamespaceCache(Node node,
boolean toplevelOnly)
This constructor parses the document and stores all namespaces it can
find.
|
Modifier and Type | Method and Description |
---|---|
String |
getNamespaceURI(String prefix)
This method is called by XPath.
|
String |
getPrefix(String namespaceURI)
This method is not needed in this context, but can be implemented in a
similar way.
|
Iterator<String> |
getPrefixes(String namespaceURI) |
public UniversalNamespaceCache(Node node, boolean toplevelOnly)
node
- source NodetoplevelOnly
- restriction of the search to enhance performancepublic String getNamespaceURI(String prefix)
getNamespaceURI
in interface NamespaceContext
prefix
- to search forpublic String getPrefix(String namespaceURI)
getPrefix
in interface NamespaceContext
public Iterator<String> getPrefixes(String namespaceURI)
getPrefixes
in interface NamespaceContext
Copyright © 2024. All rights reserved.