public class TextStylingRegistry extends AbstractRegistry<ITextStylingDocumentHandlerFactoryDiscovery>
IDocumentHandler and transform some content from syntax (HTML, MediaWiki,
etc) to another syntax (docx, odt, etc) by using text styling transformer registered in the
TextStylingTransformerRegistry.| Constructor and Description |
|---|
TextStylingRegistry() |
| Modifier and Type | Method and Description |
|---|---|
IDocumentHandler |
createDocumentHandler(String documentKind,
String elementId,
IContext context,
String entryName)
Create an instance of document handler for the given document kind.
|
protected void |
doDispose() |
static TextStylingRegistry |
getRegistry() |
protected boolean |
registerInstance(ITextStylingDocumentHandlerFactoryDiscovery discovery) |
ITransformResult |
transform(String initialContent,
String syntaxKind,
boolean syntaxWithDirective,
String documentKind,
String elementId,
IContext context,
String entryName)
Transform the given content written with the given syntaxKind (HTML, MediaWiki, etc) to another syntax defined by
the document kind (docx, odt).
|
dispose, initialize, initializeIfNeeded, onEndInitialization, onStartInitializationpublic static TextStylingRegistry getRegistry()
protected boolean registerInstance(ITextStylingDocumentHandlerFactoryDiscovery discovery)
registerInstance in class AbstractRegistry<ITextStylingDocumentHandlerFactoryDiscovery>protected void doDispose()
doDispose in class AbstractRegistry<ITextStylingDocumentHandlerFactoryDiscovery>public ITransformResult transform(String initialContent, String syntaxKind, boolean syntaxWithDirective, String documentKind, String elementId, IContext context, String entryName)
content - the content to transform.syntaxKind - the syntax of the content.syntaxWithDirective - true if there is directive in the content and false otherwise.documentKind - the syntax to obtain after the transformation.public IDocumentHandler createDocumentHandler(String documentKind, String elementId, IContext context, String entryName)
documentKind - Copyright © 2017. All Rights Reserved.