|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xpath.domapi.XPathEvaluatorImpl.DummyPrefixResolver
This prefix resolver is created whenever null is passed to the evaluate method. Its purpose is to satisfy the DOM L3 XPath API requirement that if a null prefix resolver is used, an exception should only be thrown when an attempt is made to resolve a prefix.
Constructor Summary | |
XPathEvaluatorImpl.DummyPrefixResolver()
Constructor for DummyPrefixResolver. |
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 context)
Given a namespace, get the corresponding prefix, based on the context node. |
boolean |
handlesNullPrefixes()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XPathEvaluatorImpl.DummyPrefixResolver()
Method Detail |
public String getNamespaceForPrefix(String prefix, org.w3c.dom.Node context)
PrefixResolver
getNamespaceForPrefix
in interface PrefixResolver
prefix
- The prefix to look up, which may be an empty string ("") for the default Namespace.context
- The node context from which to look up the URI.
org.w3c.dom.DOMException
- NAMESPACE_ERR: Always throws this exceptionnPrefixResolver.getNamespaceForPrefix(String, Node)
public String getNamespaceForPrefix(String prefix)
PrefixResolver
getNamespaceForPrefix
in interface PrefixResolver
prefix
- The prefix to look up, which may be an empty string ("") for the default Namespace.
org.w3c.dom.DOMException
- NAMESPACE_ERR: Always throws this exceptionnPrefixResolver.getNamespaceForPrefix(String)
public boolean handlesNullPrefixes()
handlesNullPrefixes
in interface PrefixResolver
PrefixResolver.handlesNullPrefixes()
public String getBaseIdentifier()
PrefixResolver
getBaseIdentifier
in interface PrefixResolver
CAVEAT: Note that the base URI in an XML document may vary with where you are in the document, if part of the doc's contents were brought in via an external entity reference or if mechanisms such as xml:base have been used. Unless this PrefixResolver is bound to a specific portion of the document, or has been kept up to date via some other mechanism, it may not accurately reflect that context information.
PrefixResolver.getBaseIdentifier()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |