| java.lang.Object org.apache.xml.utils.PrefixResolverDefault
All known Subclasses: org.apache.xpath.domapi.XPathNSResolverImpl,
PrefixResolverDefault | public class PrefixResolverDefault implements PrefixResolver(Code) | | This class implements a generic PrefixResolver that
can be used to perform prefix-to-namespace lookup
for the XPath object.
|
Field Summary | |
Node | m_context The context to resolve the prefix from, if the context
is not given. |
m_context | Node m_context(Code) | | The context to resolve the prefix from, if the context
is not given.
|
PrefixResolverDefault | public PrefixResolverDefault(Node xpathExpressionContext)(Code) | | Construct a PrefixResolverDefault object.
Parameters: xpathExpressionContext - The context fromwhich XPath expression prefixes will be resolved.Warning: This will not work correctly if xpathExpressionContextis an attribute node. |
getBaseIdentifier | public String getBaseIdentifier()(Code) | | Return the base identifier.
null |
getNamespaceForPrefix | public String getNamespaceForPrefix(String prefix)(Code) | | Given a namespace, get the corrisponding prefix. This assumes that
the PrevixResolver hold's it's own namespace context, or is a namespace
context itself.
Parameters: prefix - Prefix to resolve. Namespace that prefix resolves to, or null if prefixis not bound. |
getNamespaceForPrefix | public String getNamespaceForPrefix(String prefix, org.w3c.dom.Node namespaceContext)(Code) | | Given a namespace, get the corrisponding prefix.
Warning: This will not work correctly if namespaceContext
is an attribute node.
Parameters: prefix - Prefix to resolve. Parameters: namespaceContext - Node from which to start searching for axmlns attribute that binds a prefix to a namespace. Namespace that prefix resolves to, or null if prefixis not bound. |
|
|