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 ClassesModifier and TypeInterfaceDescriptionstatic interfaceTag interface for a transform state that may be used by the Writer -
Method Summary
Modifier and TypeMethodDescriptionCreate a new instance of the TransformState it uses.
It may returnnull, then the passed value in toNode will benull.getID()Return the common ID of the Model/Converter/TransformState.toNode(AbstractWmlConversionContext context, Object unmarshalledNode, Node content, Writer.TransformState state, Document doc) Generate the corresponding document fragment
-
Method Details
-
getID
String getID()Return the common ID of the Model/Converter/TransformState.- Returns:
-
toNode
Node toNode(AbstractWmlConversionContext context, Object unmarshalledNode, Node content, Writer.TransformState state, Document doc) throws TransformerException Generate the corresponding document fragment- Parameters:
context-model-state-doc-- Returns:
- Throws:
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:
-