|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dom4j.tree.NamespaceCache
NamespaceCache
caches instances of
DefaultNamespace
for reuse both across documents and within
documents.
Field Summary | |
protected static Map |
cache
Cache of Map instances indexed by URI which contain caches of
Namespace for each prefix |
protected static Map |
noPrefixCache
Cache of Namespace instances indexed by URI for default
namespaces with no prefixes |
Constructor Summary | |
NamespaceCache()
|
Method Summary | |
protected Namespace |
createNamespace(String prefix,
String uri)
A factory method to create Namespace instance |
Namespace |
get(String uri)
DOCUMENT ME! |
Namespace |
get(String prefix,
String uri)
DOCUMENT ME! |
protected Map |
getURICache(String uri)
DOCUMENT ME! |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static Map cache
Map
instances indexed by URI which contain caches of
Namespace
for each prefix
protected static Map noPrefixCache
Namespace
instances indexed by URI for default
namespaces with no prefixes
Constructor Detail |
public NamespaceCache()
Method Detail |
public Namespace get(String prefix, String uri)
prefix
- DOCUMENT ME!uri
- DOCUMENT ME!
public Namespace get(String uri)
uri
- DOCUMENT ME!
protected Map getURICache(String uri)
uri
- DOCUMENT ME!
protected Namespace createNamespace(String prefix, String uri)
Namespace
instance
prefix
- DOCUMENT ME!uri
- DOCUMENT ME!
Namespace
instance.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |