public class InscopeNamespaceResolver extends Object implements NamespaceResolver
| Constructor and Description |
|---|
InscopeNamespaceResolver(NodeInfo node)
Create a NamespaceResolver that resolves according to the in-scope namespaces
of a given node
|
| Modifier and Type | Method and Description |
|---|---|
NodeInfo |
getNode()
Get the node on which this namespace resolver is based
|
String |
getURIForPrefix(String prefix,
boolean useDefault)
Get the namespace URI corresponding to a given prefix.
|
Iterator |
iteratePrefixes()
Get an iterator over all the prefixes declared in this namespace context.
|
public InscopeNamespaceResolver(NodeInfo node)
node - the given nodepublic String getURIForPrefix(String prefix, boolean useDefault)
getURIForPrefix in interface NamespaceResolverprefix - the namespace prefixuseDefault - true if the default namespace is to be used when the
prefix is ""public Iterator iteratePrefixes()
iteratePrefixes in interface NamespaceResolverpublic NodeInfo getNode()