public interface DOMOutputProcessor
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 |
---|---|
org.w3c.dom.Attr |
process(org.w3c.dom.Document basedoc,
Format format,
Attribute attribute)
This will convert the
using the given DOM
Document to create the resulting DOM Attr. |
org.w3c.dom.CDATASection |
process(org.w3c.dom.Document basedoc,
Format format,
CDATA cdata)
This will convert the
using the given DOM
Document to create the resulting DOM CDATASection. |
org.w3c.dom.Comment |
process(org.w3c.dom.Document basedoc,
Format format,
Comment comment)
This will convert the
using the given DOM
Document to create the resulting DOM Comment. |
org.w3c.dom.Document |
process(org.w3c.dom.Document basedoc,
Format format,
Document doc)
This will convert the
to the given DOM
Document. |
org.w3c.dom.Element |
process(org.w3c.dom.Document basedoc,
Format format,
Element element)
This will convert the
using the given DOM
Document to create the resulting DOM Element. |
org.w3c.dom.EntityReference |
process(org.w3c.dom.Document basedoc,
Format format,
EntityRef entity)
This will convert the
using the given DOM
Document to create the resulting DOM EntityReference. |
java.util.List<org.w3c.dom.Node> |
process(org.w3c.dom.Document basedoc,
Format format,
java.util.List<? extends Content> list)
This will convert the list of JDOM
using the
given DOM Document to create the resulting list of DOM Nodes. |
org.w3c.dom.ProcessingInstruction |
process(org.w3c.dom.Document basedoc,
Format format,
ProcessingInstruction pi)
This will convert the
using
the given DOM Document to create the resulting DOM ProcessingInstruction. |
org.w3c.dom.Text |
process(org.w3c.dom.Document basedoc,
Format format,
Text text)
This will convert the
using the given DOM
Document to create the resulting DOM Text. |
org.w3c.dom.Document process(org.w3c.dom.Document basedoc, Format format, Document doc)
Document
to the given DOM
Document.
basedoc
- The DOM document to use for the conversionformat
- Format
instance specifying output styledoc
- Document
to format.org.w3c.dom.Element process(org.w3c.dom.Document basedoc, Format format, Element element)
Element
using the given DOM
Document to create the resulting DOM Element.basedoc
- The DOM document to use for the conversionformat
- Format
instance specifying output styleelement
- Element
to format.java.util.List<org.w3c.dom.Node> process(org.w3c.dom.Document basedoc, Format format, java.util.List<? extends Content> list)
Content
using the
given DOM Document to create the resulting list of DOM Nodes.basedoc
- The DOM document to use for the conversionformat
- Format
instance specifying output stylelist
- JDOM Content
to convert.org.w3c.dom.CDATASection process(org.w3c.dom.Document basedoc, Format format, CDATA cdata)
CDATA
using the given DOM
Document to create the resulting DOM CDATASection.basedoc
- The DOM document to use for the conversionformat
- Format
instance specifying output stylecdata
- CDATA
to format.org.w3c.dom.Text process(org.w3c.dom.Document basedoc, Format format, Text text)
Text
using the given DOM
Document to create the resulting DOM Text.basedoc
- The DOM document to use for the conversionformat
- Format
instance specifying output styletext
- Text
to format.org.w3c.dom.Comment process(org.w3c.dom.Document basedoc, Format format, Comment comment)
Comment
using the given DOM
Document to create the resulting DOM Comment.basedoc
- The DOM document to use for the conversionformat
- Format
instance specifying output stylecomment
- Comment
to format.org.w3c.dom.ProcessingInstruction process(org.w3c.dom.Document basedoc, Format format, ProcessingInstruction pi)
ProcessingInstruction
using
the given DOM Document to create the resulting DOM ProcessingInstruction.basedoc
- The DOM document to use for the conversionformat
- Format
instance specifying output stylepi
- ProcessingInstruction
to format.org.w3c.dom.EntityReference process(org.w3c.dom.Document basedoc, Format format, EntityRef entity)
EntityRef
using the given DOM
Document to create the resulting DOM EntityReference.basedoc
- The DOM document to use for the conversionformat
- Format
instance specifying output styleentity
- EntityRef
to format.org.w3c.dom.Attr process(org.w3c.dom.Document basedoc, Format format, Attribute attribute)
Attribute
using the given DOM
Document to create the resulting DOM Attr.basedoc
- The DOM document to use for the conversionformat
- Format
instance specifying output styleattribute
- Attribute
to format.Copyright © 2021 Jason Hunter, Brett McLaughlin. All Rights Reserved.