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 |
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) |
protected static Map noPrefixCache
Namespace
instances indexed by URI
for default namespaces with no prefixespublic NamespaceCache()
public Namespace get(String prefix, String uri)
protected Map getURICache(String uri)
protected Namespace createNamespace(String prefix, String uri)
Namespace
instanceNamespace
instance.protected Map createPrefixMap()
Map
instance.protected Map createURIMap()
Map
instance.WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses