org.dom4j.util

Class UserDataDocumentFactory

Implemented Interfaces:
Serializable

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

Fields inherited from class org.dom4j.DocumentFactory

cache

Method Summary

Attribute
createAttribute(Element owner, QName qname, String value)
Element
createElement(QName qname)
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 UserDataDocumentFactory singleton
The Singleton instance

Method Details

createAttribute

public Attribute createAttribute(Element owner,
                                 QName qname,
                                 String value)
Overrides:
createAttribute in interface DocumentFactory

createElement

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

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