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.
cache
Constructor and Description |
---|
BeanDocumentFactory() |
Modifier and Type | Method and Description |
---|---|
Attribute |
createAttribute(Element owner,
QName qname,
String value) |
protected Object |
createBean(QName qname) |
protected Object |
createBean(QName qname,
Attributes attributes) |
Element |
createElement(QName qname) |
Element |
createElement(QName qname,
Attributes attributes) |
static DocumentFactory |
getInstance()
Access to the singleton instance of this factory.
|
protected void |
handleException(Exception e) |
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
public static DocumentFactory getInstance()
Access to the singleton instance of this factory.
public Element createElement(QName qname)
createElement
in class DocumentFactory
public Element createElement(QName qname, Attributes attributes)
public Attribute createAttribute(Element owner, QName qname, String value)
createAttribute
in class DocumentFactory
protected Object createBean(QName qname, Attributes attributes)
protected void handleException(Exception e)
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.