Top Description Fields Constructors Methods
org.dom4j.bean

public Class BeanDocumentFactory

extends DocumentFactory
Class Inheritance
Imports
org.dom4j.Attribute, .DocumentFactory, .Element, .QName, org.dom4j.tree.DefaultAttribute, org.xml.sax.Attributes

BeanDocumentFactory is a factory of DOM4J objects which may be BeanElements which are backed by JavaBeans and their properties.

The tree built allows full XPath expressions from anywhere on the tree.

Author
James Strachan
Version
$Revision: 1.14 $

Field Summary

Modifier and TypeField and Description
private static BeanDocumentFactory
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
protected Object
protected Object
createBean(QName qname, Attributes attributes)

public Element
public Element
createElement(QName qname, Attributes attributes)

public static DocumentFactory

Returns:

the default singleon instance
getInstance
()

Hides org.dom4j.DocumentFactory.getInstance.

Access to the singleton instance of this factory.

protected void
Inherited from org.dom4j.DocumentFactory:
createAttributecreateCDATAcreateCommentcreateDocTypecreateDocumentcreateDocumentcreateDocumentcreateElementcreateElementcreateEntitycreateNamespacecreatePatterncreateProcessingInstructioncreateProcessingInstructioncreateQNamecreateQNamecreateQNamecreateQNamecreateQNameCachecreateSingletoncreateTextcreateXPathcreateXPathcreateXPathFiltercreateXPathFiltergetQNamesgetXPathNamespaceURIsinitinternsetXPathNamespaceURIs

Field Detail

singletonback to summary
private static BeanDocumentFactory singleton

Hides org.dom4j.DocumentFactory.singleton.

The Singleton instance

Constructor Detail

BeanDocumentFactoryback to summary
public BeanDocumentFactory()

Method Detail

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

Overrides org.dom4j.DocumentFactory.createAttribute.

createBeanback to summary
protected Object createBean(QName qname)
createBeanback to summary
protected Object createBean(QName qname, Attributes attributes)
createElementback to summary
public Element createElement(QName qname)

Overrides org.dom4j.DocumentFactory.createElement.

createElementback to summary
public Element createElement(QName qname, Attributes attributes)
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

handleExceptionback to summary
protected void handleException(Exception e)