Class AbstractTextStylingTransformer
java.lang.Object
fr.opensagres.xdocreport.document.textstyling.AbstractTextStylingTransformer
- All Implemented Interfaces:
ITextStylingTransformer
- Direct Known Subclasses:
HTMLTextStylingTransformer
public abstract class AbstractTextStylingTransformer
extends Object
implements ITextStylingTransformer
Abstract class for text styling transformer.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voiddoTransform(String content, IDocumentHandler documentHandler) Transform the given content (with some syntax like HTML, Mediawiki, etc) to another syntax (docx, odt, etc).transform(String content, IDocumentHandler handler) Transform the given content (with some syntax like HTML, MediaWiki, etc) to another syntax (docx, odt, etc).
-
Constructor Details
-
AbstractTextStylingTransformer
public AbstractTextStylingTransformer()
-
-
Method Details
-
transform
public ITransformResult transform(String content, IDocumentHandler handler) throws fr.opensagres.xdocreport.core.XDocReportException Description copied from interface:ITextStylingTransformerTransform the given content (with some syntax like HTML, MediaWiki, etc) to another syntax (docx, odt, etc). The given visitor can be used to process the transformation.- Specified by:
transformin interfaceITextStylingTransformer- Parameters:
content- the content to transform.handler- the document visitor used for the transformation.- Returns:
- the result of text styling transform.
- Throws:
fr.opensagres.xdocreport.core.XDocReportException
-
doTransform
protected abstract void doTransform(String content, IDocumentHandler documentHandler) throws Exception Transform the given content (with some syntax like HTML, Mediawiki, etc) to another syntax (docx, odt, etc). The given visitor can be used to process the transformation.- Parameters:
content- the content to transform.documentHandler- the document handler used for the transformation.- Throws:
Exception
-