Public Member Functions | |
| DOMBuilder () | |
| DOMBuilder (boolean validate) | |
| DOMBuilder (String adapterClass) | |
| DOMBuilder (String adapterClass, boolean validate) | |
| void | setFactory (JDOMFactory factory) |
| void | setValidation (boolean validate) |
| Document | build (InputStream in) throws JDOMException |
| Document | build (File file) throws JDOMException |
| Document | build (URL url) throws JDOMException |
| Document | build (org.w3c.dom.Document domDocument) |
| org.jdom.Element | build (org.w3c.dom.Element domElement) |
DOMBuilder builds a JDOM tree using DOM. Note that this class should only be used for building from a pre-existing DOM tree. The class can be used to build from files, streams, etc but other builders like SAXBuilder can perform the task faster because they don't create a DOM tree first.
| org::jdom::input::DOMBuilder::DOMBuilder | ( | ) | [inline] |
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.
| org::jdom::input::DOMBuilder::DOMBuilder | ( | boolean | validate | ) | [inline] |
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 validate or not according to the given parameter.
| validate | boolean indicating if validation should occur. |
| org::jdom::input::DOMBuilder::DOMBuilder | ( | String | adapterClass | ) | [inline] |
This creates a new DOMBuilder using the specified DOMAdapter implementation as a way to choose the underlying parser. The underlying parser will not validate.
| adapterClass | String name of class to use for DOM building. |
| org::jdom::input::DOMBuilder::DOMBuilder | ( | String | adapterClass, | |
| boolean | validate | |||
| ) | [inline] |
This creates a new DOMBuilder using the specified DOMAdapter implementation as a way to choose the underlying parser. The underlying parser will validate or not according to the given parameter.
| adapterClass | String name of class to use for DOM building. | |
| validate | boolean indicating if validation should occur. |
| void org::jdom::input::DOMBuilder::setValidation | ( | boolean | validate | ) | [inline] |
This sets validation for the builder.
| validate | boolean indicating whether validation should occur. |
| Document org::jdom::input::DOMBuilder::build | ( | InputStream | in | ) | throws JDOMException [inline] |
This builds a document from the supplied input stream by constructing a DOM tree and reading information from the DOM to create a JDOM document, a slower approach than SAXBuilder but useful for debugging.
| in | InputStream to read from. |
| JDOMException | when errors occur in parsing. |
SAXBuilder should be used for building from any input other than a DOM tree | Document org::jdom::input::DOMBuilder::build | ( | File | file | ) | throws JDOMException [inline] |
This builds a document from the supplied filename by constructing a DOM tree and reading information from the DOM to create a JDOM document, a slower approach than SAXBuilder but useful for debugging.
| file | File to read from. |
| JDOMException | when errors occur in parsing. |
SAXBuilder should be used for building from any input other than a DOM tree | Document org::jdom::input::DOMBuilder::build | ( | URL | url | ) | throws JDOMException [inline] |
This builds a document from the supplied URL by constructing a DOM tree and reading information from the DOM to create a JDOM document, a slower approach than SAXBuilder but useful for debugging.
| url | URL to read from. |
| JDOMException | when errors occur in parsing. |
SAXBuilder should be used for building from any input other than a DOM tree | Document org::jdom::input::DOMBuilder::build | ( | org.w3c.dom.Document | domDocument | ) | [inline] |
This will build a JDOM tree from an existing DOM tree.
| domDocument | org.w3c.dom.Document object |
Document - JDOM document object. | org.jdom.Element org::jdom::input::DOMBuilder::build | ( | org.w3c.dom.Element | domElement | ) | [inline] |
1.5.1