org.jdom.Document from a pre-existing
DOM org.w3c.dom.Document . Also handy for testing
builds from files to sanity check SAXBuilder.
| Modifier and Type | Field and Description |
|---|---|
| private String | adapterClass
Adapter class to use |
| private static final String | |
| private JDOMFactory | factory
The factory for creating new JDOM objects |
| Access | Constructor and Description |
|---|---|
| public | 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. |
| public | DOMBuilder(String
String name of class
to use for DOM building.This creates a new DOMBuilder using the specified DOMAdapter implementation as a way to choose the underlying parser. |
| Modifier and Type | Method and Description |
|---|---|
| public Document | |
| public Element | |
| private void | |
| public JDOMFactory | |
| public void |
| adapterClass | back to summary |
|---|---|
| private String adapterClass Adapter class to use | |
| CVS_ID | back to summary |
|---|---|
| private static final String CVS_ID | |
| factory | back to summary |
|---|---|
| private JDOMFactory factory The factory for creating new JDOM objects | |
| DOMBuilder | back to summary |
|---|---|
| public 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. The underlying parser will not validate. | |
| DOMBuilder | back to summary |
|---|---|
| public DOMBuilder(String adapterClass) This creates a new DOMBuilder using the specified DOMAdapter implementation as a way to choose the underlying parser. The underlying parser will not validate.
| |
| build | back to summary |
|---|---|
| public Document build(Document domDocument) This will build a JDOM tree from an existing DOM tree. | |
| build | back to summary |
|---|---|
| public Element build(Element domElement) This will build a JDOM Element from an existing DOM Element | |
| buildTree | back to summary |
|---|---|
| private void buildTree(Node node, Document doc, Element current, boolean atRoot) This takes a DOM | |
| getFactory | back to summary |
|---|---|
| public JDOMFactory getFactory() Returns the current
| |
| setFactory | back to summary |
|---|---|
| public void setFactory(JDOMFactory factory) | |