org.dom4j.util

Class IndexedDocumentFactory

Implemented Interfaces:
Serializable

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 IndexedDocumentFactory
singleton
The Singleton instance

Fields inherited from class org.dom4j.DocumentFactory

cache

Method Summary

Element
createElement(QName qname)
Element
createElement(QName qname, int attributeCount)
static DocumentFactory
getInstance()
Access to the singleton instance of this factory.

Methods inherited from class org.dom4j.DocumentFactory

createAttribute, createAttribute, createCDATA, createComment, createDocType, createDocument, createDocument, createDocument, createElement, createElement, createElement, createEntity, createNamespace, createPattern, createProcessingInstruction, createProcessingInstruction, createQName, createQName, createQName, createQName, createQNameCache, createSingleton, createText, createXPath, createXPath, createXPathFilter, createXPathFilter, getInstance, getQNames, getXPathNamespaceURIs, init, intern, setXPathNamespaceURIs

Field Details

singleton

protected static IndexedDocumentFactory singleton
The Singleton instance

Method Details

createElement

public Element createElement(QName qname)
Overrides:
createElement in interface DocumentFactory

createElement

public Element createElement(QName qname,
                             int attributeCount)

getInstance

public static DocumentFactory getInstance()
Access to the singleton instance of this factory.
Overrides:
getInstance in interface DocumentFactory
Returns:
the default singleon instance

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

SourceForge Logo