net.sf.saxon.pull
public class NamespaceContextImpl extends Object implements NamespaceContext, NamespaceResolver
| Field Summary | |
|---|---|
| NamespaceResolver | resolver |
| Constructor Summary | |
|---|---|
| NamespaceContextImpl(NamespaceResolver resolver)
Constructor: wrap a Saxon NamespaceResolver as a JAXP NamespaceContext | |
| Method Summary | |
|---|---|
| String | getNamespaceURI(String prefix)
Implement the JAXP getNamespaceURI() method in terms of the Saxon-specific methods |
| String | getPrefix(String uri)
Get the prefix bound to a particular namespace URI, if there is one, or null if not (JAXP method) |
| Iterator | getPrefixes(String uri)
Get all the prefixes mapped to a given namespace URI (JAXP method) |
| 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. |
Parameters: resolver the Saxon NamespaceResolver
Parameters: prefix a namespace prefix
Returns: the corresponding URI, if the prefix is bound, or "" otherwise
Parameters: uri the namespace URI
Returns: the prefix bound to the URI if there is one, or null if not
Parameters: uri the namespace URI
Returns: an iterator over all the prefixes bound to this namespace URI
Parameters: prefix the namespace prefix useDefault true if the default namespace is to be used when the prefix is ""
Returns: the uri for the namespace, or null if the prefix is not in scope