|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.cdmckay.coffeedom.input.DOMBuilder
public class DOMBuilder
Builds a CoffeeDOM Document
from a pre-existing DOM org.w3c.dom.Document
. Also handy for testing builds from files to sanity check SAXBuilder
.
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 adapterClassName)
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 CoffeeDOM tree from an existing DOM tree. |
Element |
build(Element domElement)
This will build a CoffeeDOM Element from an existing DOM Element |
CoffeeDOMFactory |
getFactory()
Returns the current CoffeeDOMFactory in use. |
void |
setFactory(CoffeeDOMFactory factory)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DOMBuilder()
public DOMBuilder(String adapterClassName)
adapterClassName
- String
name of class to use for DOM building.Method Detail |
---|
public void setFactory(CoffeeDOMFactory factory)
public CoffeeDOMFactory getFactory()
CoffeeDOMFactory
in use.
public Document build(Document domDocument)
domDocument
- org.w3c.dom.Document
object
Document
- CoffeeDOM document object.public Element build(Element domElement)
domElement
- org.w3c.dom.Element
object
Element
- CoffeeDOM Element object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |