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)
PrefixResolvergetNamespaceForPrefix in interface PrefixResolverprefix - The prefix to look up, which may be an empty string ("") for the default Namespace.public String getBaseIdentifier()
getBaseIdentifier in interface PrefixResolverpublic boolean handlesNullPrefixes()
handlesNullPrefixes in interface PrefixResolverPrefixResolver.handlesNullPrefixes()public String getNamespaceForPrefix(String prefix, Node namespaceContext)
getNamespaceForPrefix in interface PrefixResolverprefix - Prefix to resolve.namespaceContext - Node from which to start searching for a
xmlns attribute that binds a prefix to a namespace.Copyright © 2017 JBoss by Red Hat. All rights reserved.