org.jdom.input
public class DOMBuilder extends Object
org.jdom.Document
from a pre-existing
DOM org.w3c.dom.Document org.w3c.dom.Document
. Also handy for testing
builds from files to sanity check SAXBuilder.
Version: $Revision: 1.60 $, $Date: 2007/11/10 05:29:00 $
Constructor Summary | |
---|---|
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.
|
Method Summary | |
---|---|
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) |
Parameters: adapterClass String
name of class
to use for DOM building.
Parameters: domDocument org.w3c.dom.Document
object
Returns: Document
- JDOM document object.
Parameters: domElement org.w3c.dom.Element
object
Returns: Element
- JDOM Element object
Returns: the factory in use