| java.lang.Object net.sf.saxon.xpath.NamespaceContextImpl
NamespaceContextImpl | public class NamespaceContextImpl implements NamespaceContext,NamespaceResolver(Code) | | This class bridges between the JAXP 1.3 NamespaceContext interface and Saxon's
equivalent NamespaceResolver interface. It allows any implementation of the Saxon
NamespaceResolver to be wrapped as a JAXP NamespaceContext.
|
NamespaceContextImpl | public NamespaceContextImpl(NamespaceResolver resolver)(Code) | | Constructor: wrap a Saxon NamespaceResolver as a JAXP NamespaceContext
Parameters: resolver - the Saxon NamespaceResolver |
getNamespaceURI | public String getNamespaceURI(String prefix)(Code) | | Implement the JAXP getNamespaceURI() method in terms of the Saxon-specific methods
Parameters: prefix - a namespace prefix the corresponding URI, if the prefix is bound, or "" otherwise |
getPrefix | public String getPrefix(String uri)(Code) | | Get the prefix bound to a particular namespace URI, if there is one, or null if not (JAXP method)
Parameters: uri - the namespace URI the prefix bound to the URI if there is one, or null if not |
getPrefixes | public Iterator getPrefixes(String uri)(Code) | | Get all the prefixes mapped to a given namespace URI (JAXP method)
Parameters: uri - the namespace URI an iterator over all the prefixes bound to this namespace URI |
getURIForPrefix | public String getURIForPrefix(String prefix, boolean useDefault)(Code) | | Get the namespace URI corresponding to a given prefix. Return null
if the prefix is not in scope.
Parameters: prefix - the namespace prefix Parameters: useDefault - true if the default namespace is to be used when theprefix is "" the uri for the namespace, or null if the prefix is not in scope |
iteratePrefixes | public Iterator iteratePrefixes()(Code) | | Get an iterator over all the prefixes declared in this namespace context. This will include
the default namespace (prefix="") and the XML namespace where appropriate
|
|
|