Class TextStylingTransformerRegistry
java.lang.Object
fr.opensagres.xdocreport.core.registry.AbstractRegistry<ITextStylingTransformerDiscovery>
fr.opensagres.xdocreport.document.registry.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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidgetTextStylingTransformer(fr.opensagres.xdocreport.core.document.SyntaxKind syntaxKind) Returns the text styling transformer for the given syntax kind.getTextStylingTransformer(String syntaxKind) Returns the text styling transformer for the given syntax kind.protected booleanregisterInstance(ITextStylingTransformerDiscovery discovery) Methods inherited from class fr.opensagres.xdocreport.core.registry.AbstractRegistry
dispose, initialize, initializeIfNeeded, onEndInitialization, onStartInitialization
-
Constructor Details
-
TextStylingTransformerRegistry
public TextStylingTransformerRegistry()
-
-
Method Details
-
getRegistry
-
registerInstance
- Specified by:
registerInstancein classfr.opensagres.xdocreport.core.registry.AbstractRegistry<ITextStylingTransformerDiscovery>
-
doDispose
protected void doDispose()- Specified by:
doDisposein classfr.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
Returns the text styling transformer for the given syntax kind.- Parameters:
syntaxKind-- Returns:
-