Class TextStylingTransformerRegistry

java.lang.Object
fr.opensagres.xdocreport.core.registry.AbstractRegistry<ITextStylingTransformerDiscovery>
fr.opensagres.xdocreport.document.textstyling.TextStylingTransformerRegistry

public class TextStylingTransformerRegistry extends fr.opensagres.xdocreport.core.registry.AbstractRegistry<ITextStylingTransformerDiscovery>
Text styling registry stores instance of ITextStylingTransformer for text styling kind SyntaxKind (Html, Mediawiki, etc...).

Instance of ITextStylingTransformer must be declared in files META-INF\services\fr.opensagres.xdocreport.template.discovery. ITextStylingTransformerDiscovery

  • Constructor Details

    • TextStylingTransformerRegistry

      public TextStylingTransformerRegistry()
  • Method Details

    • getRegistry

      public static TextStylingTransformerRegistry getRegistry()
    • registerInstance

      protected boolean registerInstance(ITextStylingTransformerDiscovery discovery)
      Specified by:
      registerInstance in class fr.opensagres.xdocreport.core.registry.AbstractRegistry<ITextStylingTransformerDiscovery>
    • doDispose

      protected void doDispose()
      Specified by:
      doDispose in class fr.opensagres.xdocreport.core.registry.AbstractRegistry<ITextStylingTransformerDiscovery>
    • getTextStylingTransformer

      public ITextStylingTransformer getTextStylingTransformer(fr.opensagres.xdocreport.core.document.SyntaxKind syntaxKind)
      Returns the text styling transformer for the given syntax kind.
      Parameters:
      syntaxKind -
      Returns:
    • getTextStylingTransformer

      public ITextStylingTransformer getTextStylingTransformer(String syntaxKind)
      Returns the text styling transformer for the given syntax kind.
      Parameters:
      syntaxKind -
      Returns: