|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dom4j.tree.QNameCache
QNameCache
caches instances of QName
for reuse
both across documents and within documents.
Field Summary | |
protected Map |
namespaceCache
Cache of Map instances indexed by namespace which contain caches
of QName for each name |
protected Map |
noNamespaceCache
Cache of QName instances with no namespace |
Constructor Summary | |
QNameCache()
|
|
QNameCache(DocumentFactory documentFactory)
|
Method Summary | |
protected Map |
createMap()
A factory method |
protected QName |
createQName(String name)
Factory method to create a new QName object which can be overloaded to create derived QName instances |
protected QName |
createQName(String name,
Namespace namespace)
Factory method to create a new QName object which can be overloaded to create derived QName instances |
protected QName |
createQName(String name,
Namespace namespace,
String qualifiedName)
Factory method to create a new QName object which can be overloaded to create derived QName instances |
QName |
get(String name)
DOCUMENT ME! |
QName |
get(String name,
Namespace namespace)
DOCUMENT ME! |
QName |
get(String localName,
Namespace namespace,
String qName)
DOCUMENT ME! |
QName |
get(String qualifiedName,
String uri)
|
protected Map |
getNamespaceCache(Namespace namespace)
DOCUMENT ME! |
List |
getQNames()
Returns a list of all the QName instances currently used |
QName |
intern(QName qname)
DOCUMENT ME! |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Map noNamespaceCache
QName
instances with no namespace
protected Map namespaceCache
Map
instances indexed by namespace which contain caches
of QName
for each name
Constructor Detail |
public QNameCache()
public QNameCache(DocumentFactory documentFactory)
Method Detail |
public List getQNames()
public QName get(String name)
name
- DOCUMENT ME!
public QName get(String name, Namespace namespace)
name
- DOCUMENT ME!namespace
- DOCUMENT ME!
public QName get(String localName, Namespace namespace, String qName)
localName
- DOCUMENT ME!namespace
- DOCUMENT ME!qName
- DOCUMENT ME!
public QName get(String qualifiedName, String uri)
public QName intern(QName qname)
qname
- DOCUMENT ME!
protected Map getNamespaceCache(Namespace namespace)
namespace
- DOCUMENT ME!
protected Map createMap()
Map
instance.protected QName createQName(String name)
name
- DOCUMENT ME!
protected QName createQName(String name, Namespace namespace)
name
- DOCUMENT ME!namespace
- DOCUMENT ME!
protected QName createQName(String name, Namespace namespace, String qualifiedName)
name
- DOCUMENT ME!namespace
- DOCUMENT ME!qualifiedName
- DOCUMENT ME!
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |