DOMOutputter.
People who want to create a custom DOMOutputProcessor for DOMOutputter are able to implement this interface with the following notes and restrictions:
process(Format,*) methods each time the DOMOutputter is
requested to output some JDOM content. It is thus safe to assume that a
process(Format,*) method can set up any infrastructure needed to
process the content, and that the DOMOutputter will not re-call that method,
or some other process(Format,*) method for the same output
sequence.
process(Format,*) method may (will) be called concurrently from
different threads.
The AbstractDOMOutputProcessor class is a full implementation of this
interface and is fully customisable. People who want a custom DOMOutputter
are encouraged to extend the AbstractDOMOutputProcessor rather than do a full
re-implementation of this interface.
DOMOutputter, AbstractDOMOutputProcessor
| Modifier and Type | Method and Description |
|---|---|
| public Document | Returns: The same DOM Document as the input document, but with the JDOM content converted and added.The DOM document to use for the conversion basedoc, Format Format instance specifying output styleDocument to format.This will convert the |
| public Element | Returns: The input JDOM Element converted to a DOM ElementThe DOM document to use for the conversion basedoc, Format Format instance specifying output styleElement to format.This will convert the |
| public List | Returns: The input JDOM Content List converted to a List of DOM NodesThe DOM document to use for the conversion basedoc, Format Format instance specifying output styleJDOM list)Content to convert.This will convert the list of JDOM |
| public CDATASection | Returns: The input JDOM CDATA converted to a DOM CDATASectionThe DOM document to use for the conversion basedoc, Format Format instance specifying output styleCDATA to format.This will convert the |
| public Text | |
| public Comment | Returns: The input JDOM Comment converted to a DOM CommentThe DOM document to use for the conversion basedoc, Format Format instance specifying output styleComment to format.This will convert the |
| public ProcessingInstruction | Returns: The input JDOM ProcessingInstruction converted to a DOM ProcessingInstructionThe DOM document to use for the conversion basedoc, Format Format instance specifying output styleProcessingInstruction to format.This will convert the |
| public EntityReference | Returns: The input JDOM EntityRef converted to a DOM EntityReferenceThe DOM document to use for the conversion basedoc, Format Format instance specifying output styleEntityRef to format.This will convert the |
| public Attr | Returns: The input JDOM Attribute converted to a DOM AttrThe DOM document to use for the conversion basedoc, Format Format instance specifying output styleAttribute to format.This will convert the |
| process | back to summary |
|---|---|
| public Document process(Document basedoc, Format format, Document doc) This will convert the
| |
| process | back to summary |
|---|---|
| public Element process(Document basedoc, Format format, Element element) This will convert the | |
| process | back to summary |
|---|---|
| public List This will convert the list of JDOM | |
| process | back to summary |
|---|---|
| public CDATASection process(Document basedoc, Format format, CDATA cdata) This will convert the
| |
| process | back to summary |
|---|---|
| public Text process(Document basedoc, Format format, Text text) This will convert the | |
| process | back to summary |
|---|---|
| public Comment process(Document basedoc, Format format, Comment comment) This will convert the | |
| process | back to summary |
|---|---|
| public ProcessingInstruction process(Document basedoc, Format format, ProcessingInstruction pi) This will convert the
| |
| process | back to summary |
|---|---|
| public EntityReference process(Document basedoc, Format format, EntityRef entity) This will convert the
| |
| process | back to summary |
|---|---|
| public Attr process(Document basedoc, Format format, Attribute attribute) This will convert the | |