|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xml.utils.PrefixResolverDefault
This class implements a generic PrefixResolver that can be used to perform prefix-to-namespace lookup for the XPath object.
Field Summary | |
(package private) org.w3c.dom.Node |
m_context
The context to resolve the prefix from, if the context is not given. |
static String |
S_XMLNAMESPACEURI
The URI for the XML namespace. |
Constructor Summary | |
PrefixResolverDefault(org.w3c.dom.Node xpathExpressionContext)
Construct a PrefixResolverDefault object. |
Method Summary | |
String |
getBaseIdentifier()
Return the base identifier. |
String |
getNamespaceForPrefix(String prefix)
Given a namespace, get the corrisponding prefix. |
String |
getNamespaceForPrefix(String prefix,
org.w3c.dom.Node namespaceContext)
Given a namespace, get the corrisponding prefix. |
boolean |
handlesNullPrefixes()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
org.w3c.dom.Node m_context
public static final String S_XMLNAMESPACEURI
Constructor Detail |
public PrefixResolverDefault(org.w3c.dom.Node xpathExpressionContext)
xpathExpressionContext
- The context from
which XPath expression prefixes will be resolved.
Warning: This will not work correctly if xpathExpressionContext
is an attribute node.Method Detail |
public String getNamespaceForPrefix(String prefix)
getNamespaceForPrefix
in interface PrefixResolver
prefix
- Prefix to resolve.
public String getNamespaceForPrefix(String prefix, org.w3c.dom.Node namespaceContext)
getNamespaceForPrefix
in interface PrefixResolver
prefix
- Prefix to resolve.namespaceContext
- Node from which to start searching for a
xmlns attribute that binds a prefix to a namespace.
public String getBaseIdentifier()
getBaseIdentifier
in interface PrefixResolver
public boolean handlesNullPrefixes()
handlesNullPrefixes
in interface PrefixResolver
PrefixResolver.handlesNullPrefixes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |