public class PrefixResolverDefault extends Object implements PrefixResolver
Constructor and Description |
---|
PrefixResolverDefault(Node xpathExpressionContext)
Construct a PrefixResolverDefault object.
|
Modifier and Type | Method and Description |
---|---|
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() |
public PrefixResolverDefault(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.public String getNamespaceForPrefix(String prefix)
getNamespaceForPrefix
in interface PrefixResolver
prefix
- Prefix to resolve.public String getNamespaceForPrefix(String prefix, 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()
Copyright © 2016 JBoss by Red Hat. All rights reserved.