org.dom4j.bean

Class BeanDocumentFactory

public class BeanDocumentFactory extends DocumentFactory

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.

Version: $Revision: 1.14 $

Author: James Strachan

Method Summary
AttributecreateAttribute(Element owner, QName qname, String value)
protected ObjectcreateBean(QName qname)
protected ObjectcreateBean(QName qname, Attributes attributes)
ElementcreateElement(QName qname)
ElementcreateElement(QName qname, Attributes attributes)
static DocumentFactorygetInstance()

Access to the singleton instance of this factory.

protected voidhandleException(Exception e)

Method Detail

createAttribute

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

createBean

protected Object createBean(QName qname)

createBean

protected Object createBean(QName qname, Attributes attributes)

createElement

public Element createElement(QName qname)

createElement

public Element createElement(QName qname, Attributes attributes)

getInstance

public static DocumentFactory getInstance()

Access to the singleton instance of this factory.

Returns: the default singleon instance

handleException

protected void handleException(Exception e)
Copyright B) 2005 MetaStuff Ltd. All Rights Reserved. Hosted by

SourceForge