org.dom4j.bean

Class BeanElement

public class BeanElement extends DefaultElement

BeanElement uses a Java Bean to store its attributes.

Version: $Revision: 1.15 $

Author: James Strachan

Constructor Summary
BeanElement(String name, Object bean)
BeanElement(String name, Namespace namespace, Object bean)
BeanElement(QName qname, Object bean)
BeanElement(QName qname)
Method Summary
ElementaddAttribute(String name, String value)
ElementaddAttribute(QName qName, String value)
Attributeattribute(String name)
Attributeattribute(QName qname)
protected ListcreateAttributeList()
A Factory Method pattern which lazily creates a List implementation used to store content
protected ListcreateAttributeList(int size)
protected BeanAttributeListgetBeanAttributeList()
ObjectgetData()
DOCUMENT ME!
protected DocumentFactorygetDocumentFactory()
voidsetAttributes(List attributes)
voidsetAttributes(Attributes attributes, NamespaceStack namespaceStack, boolean noNamespaceAttributes)
voidsetData(Object data)

Constructor Detail

BeanElement

public BeanElement(String name, Object bean)

BeanElement

public BeanElement(String name, Namespace namespace, Object bean)

BeanElement

public BeanElement(QName qname, Object bean)

BeanElement

public BeanElement(QName qname)

Method Detail

addAttribute

public Element addAttribute(String name, String value)

addAttribute

public Element addAttribute(QName qName, String value)

attribute

public Attribute attribute(String name)

attribute

public Attribute attribute(QName qname)

createAttributeList

protected List createAttributeList()
A Factory Method pattern which lazily creates a List implementation used to store content

Returns: DOCUMENT ME!

createAttributeList

protected List createAttributeList(int size)

getBeanAttributeList

protected BeanAttributeList getBeanAttributeList()

getData

public Object getData()
DOCUMENT ME!

Returns: the JavaBean associated with this element

getDocumentFactory

protected DocumentFactory getDocumentFactory()

setAttributes

public void setAttributes(List attributes)

setAttributes

public void setAttributes(Attributes attributes, NamespaceStack namespaceStack, boolean noNamespaceAttributes)

setData

public void setData(Object data)
Copyright B) 2005 MetaStuff Ltd. All Rights Reserved. Hosted by

SourceForge