Top Description Fields Constructors Methods
org.dom4j.util

public Class IndexedDocumentFactory

extends DocumentFactory
Class Inheritance
Imports
org.dom4j.DocumentFactory, .Element, .QName

IndexedDocumentFactory is a factory of XML objects which create indexed Element implementations to allow quicker lookup via name of Element and Attributes though at the expense of more memory used to create the name indexes.

Author
James Strachan
Version
$Revision: 1.9 $

Field Summary

Modifier and TypeField and Description
protected static transient IndexedDocumentFactory
singleton

Hides org.dom4j.DocumentFactory.singleton.

The Singleton instance
Inherited from org.dom4j.DocumentFactory:
cache

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Element
public Element
createElement(QName qname, int attributeCount)

public static DocumentFactory

Returns:

the default singleon instance
getInstance
()

Hides org.dom4j.DocumentFactory.getInstance.

Access to the singleton instance of this factory.

Inherited from org.dom4j.DocumentFactory:
createAttributecreateAttributecreateCDATAcreateCommentcreateDocTypecreateDocumentcreateDocumentcreateDocumentcreateElementcreateElementcreateEntitycreateNamespacecreatePatterncreateProcessingInstructioncreateProcessingInstructioncreateQNamecreateQNamecreateQNamecreateQNamecreateQNameCachecreateSingletoncreateTextcreateXPathcreateXPathcreateXPathFiltercreateXPathFiltergetQNamesgetXPathNamespaceURIsinitinternsetXPathNamespaceURIs

Field Detail

singletonback to summary
protected static transient IndexedDocumentFactory singleton

Hides org.dom4j.DocumentFactory.singleton.

The Singleton instance

Constructor Detail

IndexedDocumentFactoryback to summary
public IndexedDocumentFactory()

Method Detail

createElementback to summary
public Element createElement(QName qname)

Overrides org.dom4j.DocumentFactory.createElement.

createElementback to summary
public Element createElement(QName qname, int attributeCount)
getInstanceback to summary
public static DocumentFactory getInstance()

Hides org.dom4j.DocumentFactory.getInstance.

Access to the singleton instance of this factory.

Returns:DocumentFactory

the default singleon instance