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