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 Details

    • AbstractTextStylingTransformer

      public AbstractTextStylingTransformer()
  • Method Details

    • transform

      public ITransformResult transform(String content, IDocumentHandler handler) throws fr.opensagres.xdocreport.core.XDocReportException
      Description copied from interface: ITextStylingTransformer
      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.
      Specified by:
      transform in interface ITextStylingTransformer
      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