public class NamespaceCache
extends java.lang.Object
NamespaceCache
caches instances of
DefaultNamespace
for reuse both across documents and within
documents.
Modifier and Type | Field | Description |
---|---|---|
protected static java.util.Map |
cache |
Cache of
Map instances indexed by URI which contain caches of
Namespace for each prefix |
protected static java.util.Map |
noPrefixCache |
Cache of
Namespace instances indexed by URI for default
namespaces with no prefixes |
Constructor | Description |
---|---|
NamespaceCache() |
Modifier and Type | Method | Description |
---|---|---|
protected Namespace |
createNamespace(java.lang.String prefix,
java.lang.String uri) |
A factory method to create
Namespace instance |
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 |
newConcurrentHashMap() |
protected static java.util.Map cache
Map
instances indexed by URI which contain caches of
Namespace
for each prefixprotected static java.util.Map noPrefixCache
Namespace
instances indexed by URI for default
namespaces with no prefixesprotected static java.util.Map newConcurrentHashMap()
public 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