public class JAXPPrefixResolver extends Object implements PrefixResolver
Modifier and Type | Field and Description |
---|---|
static String |
S_XMLNAMESPACEURI
The URI for the XML namespace.
|
Constructor and Description |
---|
JAXPPrefixResolver(NamespaceContext nsContext) |
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 prefix and a Context Node, get the corresponding namespace.
|
boolean |
handlesNullPrefixes() |
public static final String S_XMLNAMESPACEURI
public JAXPPrefixResolver(NamespaceContext nsContext)
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.public String getBaseIdentifier()
getBaseIdentifier
in interface PrefixResolver
public boolean handlesNullPrefixes()
handlesNullPrefixes
in interface PrefixResolver
PrefixResolver.handlesNullPrefixes()
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.Copyright © 2016 JBoss by Red Hat. All rights reserved.