Package org.dom4j.bean
Class BeanDocumentFactory
- java.lang.Object
-
- org.dom4j.DocumentFactory
-
- org.dom4j.bean.BeanDocumentFactory
-
- All Implemented Interfaces:
java.io.Serializable
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.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.dom4j.DocumentFactory
cache
-
-
Constructor Summary
Constructors Constructor Description BeanDocumentFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Attribute
createAttribute(Element owner, QName qname, java.lang.String value)
protected java.lang.Object
createBean(QName qname)
protected java.lang.Object
createBean(QName qname, org.xml.sax.Attributes attributes)
Element
createElement(QName qname)
Element
createElement(QName qname, org.xml.sax.Attributes attributes)
static DocumentFactory
getInstance()
Access to the singleton instance of this factory.protected void
handleException(java.lang.Exception e)
-
Methods inherited from class org.dom4j.DocumentFactory
createAttribute, createCDATA, createComment, createDocType, createDocument, createDocument, createDocument, createElement, createElement, createEntity, createNamespace, createPattern, createProcessingInstruction, createProcessingInstruction, createQName, createQName, createQName, createQName, createQNameCache, createSingleton, createText, createXPath, createXPath, createXPathFilter, createXPathFilter, getQNames, getXPathNamespaceURIs, init, intern, setXPathNamespaceURIs
-
-
-
-
Method Detail
-
getInstance
public static DocumentFactory getInstance()
Access to the singleton instance of this factory.
- Returns:
- the default singleon instance
-
createElement
public Element createElement(QName qname)
- Overrides:
createElement
in classDocumentFactory
-
createAttribute
public Attribute createAttribute(Element owner, QName qname, java.lang.String value)
- Overrides:
createAttribute
in classDocumentFactory
-
createBean
protected java.lang.Object createBean(QName qname)
-
createBean
protected java.lang.Object createBean(QName qname, org.xml.sax.Attributes attributes)
-
handleException
protected void handleException(java.lang.Exception e)
-
-