| org.apache.xml.utils.PrefixResolver
All known Subclasses: org.apache.xpath.jaxp.JAXPPrefixResolver, org.apache.xml.utils.PrefixResolverDefault, org.apache.xalan.processor.StylesheetHandler, org.apache.xalan.templates.ElemTemplateElement,
PrefixResolver | public interface PrefixResolver (Code) | | The class that implements this interface can resolve prefixes to
namespaces. Examples would include resolving the meaning of a
prefix at a particular point in a document, or mapping the prefixes
used in an XPath expression.
|
Method Summary | |
public String | getBaseIdentifier() Return the base identifier.
The base identifier from where relative URIs should be absolutized, or null if the base ID is unknown.CAVEAT: Note that the base URI in an XML document may vary with whereyou are in the document, if part of the doc's contents were brought invia an external entity reference or if mechanisms such as xml:base havebeen used. | String | getNamespaceForPrefix(String prefix) Given a namespace, get the corrisponding prefix. | String | getNamespaceForPrefix(String prefix, org.w3c.dom.Node context) Given a namespace, get the corresponding prefix, based on the context node.
Parameters: prefix - The prefix to look up, which may be an empty string ("") for the default Namespace. Parameters: context - The node context from which to look up the URI. | public boolean | handlesNullPrefixes() |
getBaseIdentifier | public String getBaseIdentifier()(Code) | | Return the base identifier.
The base identifier from where relative URIs should be absolutized, or null if the base ID is unknown. CAVEAT: Note that the base URI in an XML document may vary with whereyou are in the document, if part of the doc's contents were brought invia an external entity reference or if mechanisms such as xml:base havebeen used. Unless this PrefixResolver is bound to a specific portion ofthe document, or has been kept up to date via some other mechanism, itmay not accurately reflect that context information. |
getNamespaceForPrefix | String getNamespaceForPrefix(String prefix)(Code) | | Given a namespace, get the corrisponding prefix. This assumes that
the PrefixResolver holds its own namespace context, or is a namespace
context itself.
Parameters: prefix - The prefix to look up, which may be an empty string ("") for the default Namespace. The associated Namespace URI, or null if the prefixis undeclared in this context. |
getNamespaceForPrefix | String getNamespaceForPrefix(String prefix, org.w3c.dom.Node context)(Code) | | Given a namespace, get the corresponding prefix, based on the context node.
Parameters: prefix - The prefix to look up, which may be an empty string ("") for the default Namespace. Parameters: context - The node context from which to look up the URI. The associated Namespace URI as a string, or null if the prefixis undeclared in this context. |
handlesNullPrefixes | public boolean handlesNullPrefixes()(Code) | | |
|
|