public class NamespaceCache extends Object
NamespaceCache
caches instances of
DefaultNamespace
for reuse both across documents and within
documents.
Modifier and Type | Field and Description |
---|---|
protected static Map |
cache
|
protected static Map |
noPrefixCache
Cache of
Namespace instances indexed by URI for default
namespaces with no prefixes |
Constructor and Description |
---|
NamespaceCache() |
Modifier and Type | Method and Description |
---|---|
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!
|
protected static Map cache
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!Copyright © 2012 JBoss by Red Hat. All Rights Reserved.