org.dom4j.util

Class UserDataDocumentFactory

public class UserDataDocumentFactory extends DocumentFactory

UserDataDocumentFactory is a factory of XML objects which support the adornment of a user data object on an Element or Attribute instance such that the methods getData() and setData() will get and set the values of a user data object. This can be useful for developers wishing to create XML trees and adorn the trees with user defined objects.

Version: $Revision: 1.11 $

Author: James Strachan

Field Summary
protected static UserDataDocumentFactorysingleton
The Singleton instance
Method Summary
AttributecreateAttribute(Element owner, QName qname, String value)
ElementcreateElement(QName qname)
static DocumentFactorygetInstance()

Access to the singleton instance of this factory.

Field Detail

singleton

protected static transient UserDataDocumentFactory singleton
The Singleton instance

Method Detail

createAttribute

public Attribute createAttribute(Element owner, QName qname, String value)

createElement

public Element createElement(QName qname)

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