|
|||||||||||
| 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 |
protected Map |
createPrefixMap()
A factory method to create prefix caches |
protected Map |
createURIMap()
A factory method to create URI caches |
Namespace |
get(String uri)
|
Namespace |
get(String prefix,
String uri)
|
protected Map |
getURICache(String uri)
|
| 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)
public Namespace get(String uri)
protected Map getURICache(String uri)
protected Namespace createNamespace(String prefix,
String uri)
Namespace instance
Namespace instance.protected Map createPrefixMap()
Map instance.protected Map createURIMap()
Map instance.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||