public class DOMBuilder extends Object
org.jdom.Document
from a pre-existing
DOM org.w3c.dom.Document
. Also handy for testing
builds from files to sanity check SAXBuilder
.Constructor and Description |
---|
DOMBuilder()
This creates a new DOMBuilder which will attempt to first locate
a parser via JAXP, then will try to use a set of default parsers.
|
DOMBuilder(String adapterClass)
This creates a new DOMBuilder using the specified DOMAdapter
implementation as a way to choose the underlying parser.
|
Modifier and Type | Method and Description |
---|---|
Document |
build(Document domDocument)
This will build a JDOM tree from an existing DOM tree.
|
Element |
build(Element domElement)
This will build a JDOM Element from an existing DOM Element
|
JDOMFactory |
getFactory()
Returns the current
JDOMFactory in use. |
void |
setFactory(JDOMFactory factory) |
public DOMBuilder()
public DOMBuilder(String adapterClass)
adapterClass
- String
name of class
to use for DOM building.public void setFactory(JDOMFactory factory)
public JDOMFactory getFactory()
JDOMFactory
in use.public Document build(Document domDocument)
domDocument
- org.w3c.dom.Document
objectDocument
- JDOM document object.Copyright © 2012 JBoss by Red Hat. All Rights Reserved.