org.jdom.output
Class DOMOutputter
java.lang.Object
org.jdom.output.DOMOutputter
public class DOMOutputter
extends java.lang.Object
Takes a JDOM tree and outputs to a DOM tree.
$Revision: 1.28 $, $Date: 2002/02/12 06:15:21 $- Brett McLaughlin
- Jason Hunter
- Matthew Merlo
- Dan Schaffer
- Yusuf Goolamabbas
- Bradley S. Huffman
DOMOutputter() -
This creates a new DOMOutputter which will attempt to first locate
a DOM implementation to use via JAXP, and if JAXP does not exist or
there's a problem, will fall back to the default parser.
|
DOMOutputter(String adapterClass) -
This creates a new DOMOutputter using the specified DOMAdapter
implementation as a way to choose the underlying parser.
|
org.w3c.dom.Attr | output(Attribute attribute) -
This converts the JDOM
Attribute parameter to a
DOM Attr , returning the DOM version.
|
protected org.w3c.dom.Attr | output(Attribute attribute, org.w3c.dom.Document domDoc)
|
org.w3c.dom.Document | output(Document document) -
This converts the JDOM
Document parameter to a
DOM Document, returning the DOM version.
|
org.w3c.dom.Element | output(Element element) -
This converts the JDOM
Element parameter to a
DOM Element, returning the DOM version.
|
protected org.w3c.dom.Element | output(Element element, org.w3c.dom.Document domDoc, org.jdom.output.NamespaceStack namespaces)
|
DOMOutputter
public DOMOutputter()
This creates a new DOMOutputter which will attempt to first locate
a DOM implementation to use via JAXP, and if JAXP does not exist or
there's a problem, will fall back to the default parser.
DOMOutputter
public DOMOutputter(String adapterClass)
This creates a new DOMOutputter using the specified DOMAdapter
implementation as a way to choose the underlying parser.
adapterClass
- String
name of class
to use for DOM output
output
public org.w3c.dom.Attr output(Attribute attribute)
throws JDOMException
This converts the JDOM Attribute
parameter to a
DOM Attr
, returning the DOM version.
attribute
- Attribute
to output.
- an
org.w3c.dom.Attr
version
output
protected org.w3c.dom.Attr output(Attribute attribute,
org.w3c.dom.Document domDoc)
throws JDOMException
output
public org.w3c.dom.Document output(Document document)
throws JDOMException
This converts the JDOM Document
parameter to a
DOM Document, returning the DOM version. The DOM implementation
is the one chosen in the constructor.
document
- Document
to output.
- an
org.w3c.dom.Document
version
output
public org.w3c.dom.Element output(Element element)
throws JDOMException
This converts the JDOM Element
parameter to a
DOM Element, returning the DOM version.
element
- Element
to output.
- an
org.w3c.dom.Element
version
output
protected org.w3c.dom.Element output(Element element,
org.w3c.dom.Document domDoc,
org.jdom.output.NamespaceStack namespaces)
throws JDOMException
Copyright B) 2002 Jason Hunter, Brett McLaughlin. All Rights Reserved.