public class NamespaceCache
extends java.lang.Object
NamespaceCache caches instances of
DefaultNamespace for reuse both across documents and within
documents.
| Modifier and Type | Field and Description |
|---|---|
protected static java.util.Map |
cache
Cache of
Mapinstances indexed by URI which contain caches of
Namespacefor each prefix |
protected static java.util.Map |
noPrefixCache
Cache of
Namespaceinstances indexed by URI for default
namespaces with no prefixes |
| Constructor and Description |
|---|
NamespaceCache() |
| Modifier and Type | Method and Description |
|---|---|
protected Namespace |
createNamespace(java.lang.String prefix,
java.lang.String uri)
A factory method to create
Namespaceinstance |
Namespace |
get(java.lang.String uri)
DOCUMENT ME!
|
Namespace |
get(java.lang.String prefix,
java.lang.String uri)
DOCUMENT ME!
|
protected java.util.Map |
getURICache(java.lang.String uri)
DOCUMENT ME!
|
protected static java.util.Map cache
Mapinstances indexed by URI which contain caches of
Namespacefor each prefixprotected static java.util.Map noPrefixCache
Namespaceinstances indexed by URI for default
namespaces with no prefixespublic Namespace get(java.lang.String prefix, java.lang.String uri)
prefix - DOCUMENT ME!uri - DOCUMENT ME!public Namespace get(java.lang.String uri)
uri - DOCUMENT ME!protected java.util.Map getURICache(java.lang.String uri)
uri - DOCUMENT ME!Copyright ? 2005 MetaStuff Ltd. All Rights Reserved. Hosted by