Package org.dom4j.bean
Class BeanDocumentFactory
java.lang.Object
org.dom4j.DocumentFactory
org.dom4j.bean.BeanDocumentFactory
- All Implemented Interfaces:
Serializable
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 $
- See Also:
-
Field Summary
FieldsFields inherited from class org.dom4j.DocumentFactory
cache
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateAttribute
(Element owner, QName qname, String value) protected Object
createBean
(QName qname) protected Object
createBean
(QName qname, Attributes attributes) createElement
(QName qname) createElement
(QName qname, Attributes attributes) static DocumentFactory
Access to the singleton instance of this factory.protected void
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
-
Field Details
-
singleton
The Singleton instance
-
-
Constructor Details
-
BeanDocumentFactory
public BeanDocumentFactory()
-
-
Method Details
-
getInstance
Access to the singleton instance of this factory.
- Returns:
- the default singleon instance
-
createElement
- Overrides:
createElement
in classDocumentFactory
-
createElement
-
createAttribute
- Overrides:
createAttribute
in classDocumentFactory
-
createBean
-
createBean
-
handleException
-