|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jdom.output.DOMOutputter
Takes a JDOM tree and outputs to a DOM tree.
Constructor Summary | |
DOMOutputter()
This creates a DOMOutputter . |
Method Summary | |
protected void |
buildDOMTree(java.lang.Object content,
org.w3c.dom.Document doc,
org.w3c.dom.Element current,
boolean atRoot,
java.util.LinkedList namespaces)
This takes a JDOM Object and builds up
a DOM tree, recursing until the JDOM tree is exhausted
and the DOM tree results. |
java.lang.String |
getXmlnsTagFor(Namespace ns)
This will handle adding any
attributes to the DOM tree. |
org.w3c.dom.Attr |
output(Attribute attribute)
This converts the JDOM Attribute parameter to a
DOM Attr , returning the DOM version. |
org.w3c.dom.Attr |
output(Attribute attribute,
java.lang.String domAdapterClass)
This converts the JDOM Attribute parameter to a
DOM Attr, returning the DOM version. |
org.w3c.dom.Document |
output(Document document)
This converts the JDOM Document parameter to a
DOM Document, returning the DOM version. |
org.w3c.dom.Document |
output(Document document,
java.lang.String domAdapterClass)
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. |
org.w3c.dom.Element |
output(Element element,
java.lang.String domAdapterClass)
This converts the JDOM Element parameter to a
DOM Element, returning the DOM version. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public DOMOutputter()
This creates a DOMOutputter
.
Method Detail |
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 default DOM adapter class
is used.
document
- Document
to output.org.w3c.dom.Document
versionpublic org.w3c.dom.Element output(Element element) throws JDOMException
This converts the JDOM Element
parameter to a
DOM Element, returning the DOM version. The default DOM adapter class
is used.
element
- Element
to output.org.w3c.dom.Element
versionpublic org.w3c.dom.Attr output(Attribute attribute) throws JDOMException
This converts the JDOM Attribute
parameter to a
DOM Attr
, returning the DOM version.
The default DOM adapter class is used.
attribute
- Attribute
to output.org.w3c.dom.Attr
versionpublic org.w3c.dom.Element output(Element element, java.lang.String domAdapterClass) throws JDOMException
This converts the JDOM Element
parameter to a
DOM Element, returning the DOM version. The specified DOM adapter
class (see org.jdom.adapters.*) is used, as a way to choose the
DOM implementation.
element
- Element
to output.domAdapterClass
- DOM adapter class to useorg.w3c.dom.Element
versionpublic org.w3c.dom.Document output(Document document, java.lang.String domAdapterClass) throws JDOMException
This converts the JDOM Document
parameter to a
DOM Document, returning the DOM version. The specified DOM adapter
class (see org.jdom.adapters.*) is used, as a way to choose the
DOM implementation.
document
- Document
to output.domAdapterClass
- DOM adapter class to useorg.w3c.dom.Document
versionpublic org.w3c.dom.Attr output(Attribute attribute, java.lang.String domAdapterClass) throws JDOMException
This converts the JDOM Attribute
parameter to a
DOM Attr, returning the DOM version. The specified DOM adapter
class (see org.jdom.adapters.*) is used, as a way to choose the
DOM implementation
attribute
- Attribute
to output.domAdapterClass
- DOM adapter class to useorg.w3c.dom.Attr
versionprotected void buildDOMTree(java.lang.Object content, org.w3c.dom.Document doc, org.w3c.dom.Element current, boolean atRoot, java.util.LinkedList namespaces)
This takes a JDOM Object
and builds up
a DOM tree, recursing until the JDOM tree is exhausted
and the DOM tree results.
content
- Object to examine.doc
- DOM Document
being built.current
- Element
that is current parent.atRoot
- boolean
indicating whether at root level.namespaces
- LinkedList
containing namespaces in scope
public java.lang.String getXmlnsTagFor(Namespace ns)
This will handle adding any
attributes to the DOM tree.
Namespace
ns
- Namespace
to add definition of
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |