org.dom4j.util

Class IndexedDocumentFactory

public class IndexedDocumentFactory extends DocumentFactory

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.

Version: $Revision: 1.9 $

Author: James Strachan

Field Summary
protected static IndexedDocumentFactorysingleton
The Singleton instance
Method Summary
ElementcreateElement(QName qname)
ElementcreateElement(QName qname, int attributeCount)
static DocumentFactorygetInstance()

Access to the singleton instance of this factory.

Field Detail

singleton

protected static transient IndexedDocumentFactory singleton
The Singleton instance

Method Detail

createElement

public Element createElement(QName qname)

createElement

public Element createElement(QName qname, int attributeCount)

getInstance

public static DocumentFactory getInstance()

Access to the singleton instance of this factory.

Returns: the default singleon instance

Copyright B) 2005 MetaStuff Ltd. All Rights Reserved. Hosted by

SourceForge