|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xpath.jaxp.JAXPPrefixResolver
public class JAXPPrefixResolver
This class implements a Default PrefixResolver which can be used to perform prefix-to-namespace lookup for the XPath object. This class delegates the resolution to the passed NamespaceContext
Field Summary | |
---|---|
private javax.xml.namespace.NamespaceContext |
namespaceContext
|
static java.lang.String |
S_XMLNAMESPACEURI
The URI for the XML namespace. |
Constructor Summary | |
---|---|
JAXPPrefixResolver(javax.xml.namespace.NamespaceContext nsContext)
|
Method Summary | |
---|---|
java.lang.String |
getBaseIdentifier()
Return the base identifier. |
java.lang.String |
getNamespaceForPrefix(java.lang.String prefix)
Given a namespace, get the corrisponding prefix. |
java.lang.String |
getNamespaceForPrefix(java.lang.String prefix,
org.w3c.dom.Node namespaceContext)
Given a prefix and a Context Node, get the corresponding namespace. |
boolean |
handlesNullPrefixes()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private javax.xml.namespace.NamespaceContext namespaceContext
public static final java.lang.String S_XMLNAMESPACEURI
Constructor Detail |
---|
public JAXPPrefixResolver(javax.xml.namespace.NamespaceContext nsContext)
Method Detail |
---|
public java.lang.String getNamespaceForPrefix(java.lang.String prefix)
PrefixResolver
getNamespaceForPrefix
in interface PrefixResolver
prefix
- The prefix to look up, which may be an empty string ("") for the default Namespace.
public java.lang.String getBaseIdentifier()
getBaseIdentifier
in interface PrefixResolver
public boolean handlesNullPrefixes()
handlesNullPrefixes
in interface PrefixResolver
PrefixResolver.handlesNullPrefixes()
public java.lang.String getNamespaceForPrefix(java.lang.String prefix, org.w3c.dom.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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |