| Modifier and Type | Field and Description |
|---|---|
| pack-priv Node | m_context
The context to resolve the prefix from, if the context is not given. |
| Access | Constructor and Description |
|---|---|
| public | PrefixResolverDefault(Node
The context from
which XPath expression prefixes will be resolved.
xpathExpressionContext)Warning This will not work correctly if xpathExpressionContext is an attribute node. Construct a PrefixResolverDefault object. |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: nullImplements com. Return the base identifier. |
| public String | Returns: Namespace that prefix resolves to, or null if prefix is not bound.Prefix to resolve. prefix)Implements com. Given a namespace, get the corrisponding prefix. |
| public String | Returns: Namespace that prefix resolves to, or null if prefix is not bound.Prefix to resolve. prefix, Node Node from which to start searching for a
xmlns attribute that binds a prefix to a namespace. namespaceContext)Implements com. Given a namespace, get the corrisponding prefix. |
| public boolean |
| m_context | back to summary |
|---|---|
| pack-priv Node m_context The context to resolve the prefix from, if the context is not given. | |
| PrefixResolverDefault | back to summary |
|---|---|
| public PrefixResolverDefault(Node xpathExpressionContext) Construct a PrefixResolverDefault object.
| |
| getBaseIdentifier | back to summary |
|---|---|
| public String getBaseIdentifier() Implements com. Return the base identifier.
| |
| getNamespaceForPrefix | back to summary |
|---|---|
| public String getNamespaceForPrefix(String prefix) Implements com. 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. | |
| getNamespaceForPrefix | back to summary |
|---|---|
| public String getNamespaceForPrefix(String prefix, Node namespaceContext) Implements com. Given a namespace, get the corrisponding prefix. Warning This will not work correctly if namespaceContext is an attribute node. | |
| handlesNullPrefixes | back to summary |
|---|---|
| public boolean handlesNullPrefixes() Implements com.
| |