|
|||||||||
| Home >> All >> org >> jdom >> [ input overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.jdom.input
Class DOMBuilder

java.lang.Objectorg.jdom.input.DOMBuilder
- public class DOMBuilder
- extends java.lang.Object
Builds a JDOM org.jdom.Document from a pre-existing DOM org.w3c.dom.Document. Also handy for testing builds from files to sanity check SAXBuilder.
- Version:
- $Revision: 1.59 $, $Date: 2004/09/03 06:03:41 $
| Field Summary | |
private java.lang.String |
adapterClass
Adapter class to use |
private static java.lang.String |
CVS_ID
|
private org.jdom.input.JDOMFactory |
factory
The factory for creating new JDOM objects |
| 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(java.lang.String adapterClass)
This creates a new DOMBuilder using the specified DOMAdapter implementation as a way to choose the underlying parser. |
|
| Method Summary | |
org.jdom.Document |
build(org.w3c.dom.Document domDocument)
This will build a JDOM tree from an existing DOM tree. |
org.jdom.Element |
build(org.w3c.dom.Element domElement)
This will build a JDOM Element from an existing DOM Element |
private void |
buildTree(org.w3c.dom.Node node,
org.jdom.Document doc,
org.jdom.Element current,
boolean atRoot)
This takes a DOM Node and builds up
a JDOM tree, recursing until the DOM tree is exhausted
and the JDOM tree results. |
org.jdom.input.JDOMFactory |
getFactory()
Returns the current org.jdom.JDOMFactory in use. |
void |
setFactory(org.jdom.input.JDOMFactory factory)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
CVS_ID
private static final java.lang.String CVS_ID
- See Also:
- Constant Field Values
adapterClass
private java.lang.String adapterClass
- Adapter class to use
factory
private org.jdom.input.JDOMFactory factory
- The factory for creating new JDOM objects
| Constructor Detail |
DOMBuilder
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
public DOMBuilder(java.lang.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.
| Method Detail |
setFactory
public void setFactory(org.jdom.input.JDOMFactory factory)
getFactory
public org.jdom.input.JDOMFactory getFactory()
- Returns the current org.jdom.JDOMFactory in use.
build
public org.jdom.Document build(org.w3c.dom.Document domDocument)
- This will build a JDOM tree from an existing DOM tree.
build
public org.jdom.Element build(org.w3c.dom.Element domElement)
- This will build a JDOM Element from an existing DOM Element
buildTree
private void buildTree(org.w3c.dom.Node node, org.jdom.Document doc, org.jdom.Element current, boolean atRoot)
- This takes a DOM
Nodeand builds up a JDOM tree, recursing until the DOM tree is exhausted and the JDOM tree results.
|
|||||||||
| Home >> All >> org >> jdom >> [ input overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.jdom.input.DOMBuilder