org.apache.xml.utils
public class PrefixResolverDefault extends Object implements PrefixResolver
UNKNOWN: general
| Constructor Summary | |
|---|---|
| PrefixResolverDefault(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, Node namespaceContext)
Given a namespace, get the corrisponding prefix.
|
| boolean | handlesNullPrefixes() |
Parameters: xpathExpressionContext The context from which XPath expression prefixes will be resolved. Warning: This will not work correctly if xpathExpressionContext is an attribute node.
Returns: null
Parameters: prefix Prefix to resolve.
Returns: Namespace that prefix resolves to, or null if prefix is not bound.
Parameters: prefix Prefix to resolve. namespaceContext Node from which to start searching for a xmlns attribute that binds a prefix to a namespace.
Returns: Namespace that prefix resolves to, or null if prefix is not bound.
See Also: handlesNullPrefixes