Package org.dom4j.tree
Class QNameCache
java.lang.Object
org.dom4j.tree.QNameCache
QNameCache
caches instances of QName
for reuse
both across documents and within documents.
- Version:
- $Revision: 1.16 $
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate DocumentFactory
The document factory associated with new QNames instances in this cache or null if no instances should be associated by defaultCache ofQName
instances with no namespace -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionA factory methodprotected QName
createQName
(String name) Factory method to create a new QName object which can be overloaded to create derived QName instancesprotected QName
createQName
(String name, Namespace namespace) Factory method to create a new QName object which can be overloaded to create derived QName instancesprotected QName
createQName
(String name, Namespace namespace, String qualifiedName) Factory method to create a new QName object which can be overloaded to create derived QName instancesDOCUMENT ME!DOCUMENT ME!DOCUMENT ME!getNamespaceCache
(Namespace namespace) DOCUMENT ME!Returns a list of all the QName instances currently usedDOCUMENT ME!
-
Field Details
-
noNamespaceCache
Cache ofQName
instances with no namespace -
namespaceCache
-
documentFactory
The document factory associated with new QNames instances in this cache or null if no instances should be associated by default
-
-
Constructor Details
-
QNameCache
public QNameCache() -
QNameCache
-
-
Method Details
-
getQNames
Returns a list of all the QName instances currently used- Returns:
- DOCUMENT ME!
-
get
DOCUMENT ME!- Parameters:
name
- DOCUMENT ME!- Returns:
- the QName for the given name and no namepsace
-
get
DOCUMENT ME!- Parameters:
name
- DOCUMENT ME!namespace
- DOCUMENT ME!- Returns:
- the QName for the given local name and namepsace
-
get
DOCUMENT ME!- Parameters:
localName
- DOCUMENT ME!namespace
- DOCUMENT ME!qName
- DOCUMENT ME!- Returns:
- the QName for the given local name, qualified name and namepsace
-
get
-
intern
DOCUMENT ME!- Parameters:
qname
- DOCUMENT ME!- Returns:
- the cached QName instance if there is one or adds the given qname to the cache if not
-
getNamespaceCache
DOCUMENT ME!- Parameters:
namespace
- DOCUMENT ME!- Returns:
- the cache for the given namespace. If one does not currently exist it is created.
-
createMap
A factory method- Returns:
- a newly created
Map
instance.
-
createQName
Factory method to create a new QName object which can be overloaded to create derived QName instances- Parameters:
name
- DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
createQName
Factory method to create a new QName object which can be overloaded to create derived QName instances- Parameters:
name
- DOCUMENT ME!namespace
- DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
createQName
Factory method to create a new QName object which can be overloaded to create derived QName instances- Parameters:
name
- DOCUMENT ME!namespace
- DOCUMENT ME!qualifiedName
- DOCUMENT ME!- Returns:
- DOCUMENT ME!
-