public interface PrefixResolver
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 context)
Given a namespace, get the corresponding prefix, based on the context node.
|
boolean |
handlesNullPrefixes() |
String getNamespaceForPrefix(String prefix)
prefix
- The prefix to look up, which may be an empty string ("") for the default Namespace.String getNamespaceForPrefix(String prefix, Node context)
prefix
- The prefix to look up, which may be an empty string ("") for the default Namespace.context
- The node context from which to look up the URI.String getBaseIdentifier()
CAVEAT: Note that the base URI in an XML document may vary with where you are in the document, if part of the doc's contents were brought in via an external entity reference or if mechanisms such as xml:base have been used. Unless this PrefixResolver is bound to a specific portion of the document, or has been kept up to date via some other mechanism, it may not accurately reflect that context information.
boolean handlesNullPrefixes()
Copyright © 2021 JBoss by Red Hat. All rights reserved.