Package org.docx4j.convert.out.common
Interface Writer
- All Known Implementing Classes:
AbstractBookmarkStartWriter,AbstractBrWriter,AbstractFldSimpleWriter,AbstractHyperlinkWriter,AbstractPictWriter,AbstractSimpleWriter,AbstractSymbolWriter,AbstractTableWriter,BookmarkStartWriter,BrWriter,FldSimpleWriter,HyperlinkWriter,SymbolWriter,TableWriter
public interface Writer
Note that Writer(s) must be
registered in the corresponding instance (FO, HTML...)
of the WriterRegistry. Writers are Singletons and shouldn't
keep any state.
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceWriter.TransformStateTag interface for a transform state that may be used by the Writer -
Method Summary
Modifier and Type Method Description Writer.TransformStatecreateTransformState()Create a new instance of the TransformState it uses.
It may returnnull, then the passed value in toNode will benull.java.lang.StringgetID()Return the common ID of the Model/Converter/TransformState.org.w3c.dom.NodetoNode(AbstractWmlConversionContext context, java.lang.Object unmarshalledNode, org.w3c.dom.Node content, Writer.TransformState state, org.w3c.dom.Document doc)Generate the corresponding document fragment
-
Method Details
-
getID
java.lang.String getID()Return the common ID of the Model/Converter/TransformState.- Returns:
-
toNode
org.w3c.dom.Node toNode(AbstractWmlConversionContext context, java.lang.Object unmarshalledNode, org.w3c.dom.Node content, Writer.TransformState state, org.w3c.dom.Document doc) throws javax.xml.transform.TransformerExceptionGenerate the corresponding document fragment- Parameters:
context-model-state-doc-- Returns:
- Throws:
javax.xml.transform.TransformerException
-
createTransformState
Writer.TransformState createTransformState()Create a new instance of the TransformState it uses.
It may returnnull, then the passed value in toNode will benull.- Returns:
-