Top Description Fields Constructors Methods
org.dom4j.util

public Class UserDataDocumentFactory

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

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.

Author
James Strachan
Version
$Revision: 1.11 $

Field Summary

Modifier and TypeField and Description
protected static transient UserDataDocumentFactory
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 Attribute
public Element
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:
createAttributecreateCDATAcreateCommentcreateDocTypecreateDocumentcreateDocumentcreateDocumentcreateElementcreateElementcreateEntitycreateNamespacecreatePatterncreateProcessingInstructioncreateProcessingInstructioncreateQNamecreateQNamecreateQNamecreateQNamecreateQNameCachecreateSingletoncreateTextcreateXPathcreateXPathcreateXPathFiltercreateXPathFiltergetQNamesgetXPathNamespaceURIsinitinternsetXPathNamespaceURIs

Field Detail

singletonback to summary
protected static transient UserDataDocumentFactory singleton

Hides org.dom4j.DocumentFactory.singleton.

The Singleton instance

Constructor Detail

UserDataDocumentFactoryback to summary
public UserDataDocumentFactory()

Method Detail

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

Overrides org.dom4j.DocumentFactory.createAttribute.

createElementback to summary
public Element createElement(QName qname)

Overrides org.dom4j.DocumentFactory.createElement.

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