|
NetKernel APIs |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ten60.netkernel.xml.xda.DOMPrefixResolver
A PrefixResolver that works with with namespaces and is cacheable
Nested Class Summary | |
class |
DOMPrefixResolver.MapItem
|
Field Summary | |
static String |
XML_PREFIX
|
static String |
XML_PREFIX_NAMESPACE
|
Constructor Summary | |
DOMPrefixResolver()
Creates a new instance of DOMPrefixResolver |
|
DOMPrefixResolver(Document aDocument)
Creates a new instance of WritablePrefixResolver |
Method Summary | |
String |
getBaseIdentifier()
Return the base identifier. |
String |
getNamespaceForPrefix(String aPrefix)
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. |
Map |
getPrefixMap()
|
boolean |
handlesNullPrefixes()
|
boolean |
hasNamespaces()
|
void |
setBaseIdentifier(String aString)
|
void |
setNamespaceforPrefix(String aPrefix,
String aUri)
|
void |
setNamespaceforPrefix(String aPrefix,
String aUri,
Node aContext)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String XML_PREFIX
public static final String XML_PREFIX_NAMESPACE
Constructor Detail |
public DOMPrefixResolver(Document aDocument)
public DOMPrefixResolver()
Method Detail |
public String getBaseIdentifier()
getBaseIdentifier
in interface org.apache.xml.utils.PrefixResolver
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.
public String getNamespaceForPrefix(String aPrefix)
getNamespaceForPrefix
in interface org.apache.xml.utils.PrefixResolver
public String getNamespaceForPrefix(String prefix, Node context)
getNamespaceForPrefix
in interface org.apache.xml.utils.PrefixResolver
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.
public boolean handlesNullPrefixes()
handlesNullPrefixes
in interface org.apache.xml.utils.PrefixResolver
public void setBaseIdentifier(String aString)
public void setNamespaceforPrefix(String aPrefix, String aUri)
public void setNamespaceforPrefix(String aPrefix, String aUri, Node aContext)
public final boolean hasNamespaces()
public Map getPrefixMap()
|
NetKernel APIs |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |