public interface EditorConfigurationBuilder
Templater Editor integration is available for Reporting and Enterprise license. Many options can be configured which will setup Templater Editor behavior. This is useful when preparing document for tag definition and for final processing of document when template setup can be changed into presentation setup.
Most configuration options will leave already existing values unless specific setting is provided.
Modifier and Type | Interface and Description |
---|---|
static interface |
EditorConfigurationBuilder.MetadataProvider
Callback for metadata type.
|
static class |
EditorConfigurationBuilder.TagMetadata
Additional metadata available in Templater Editor.
|
static class |
EditorConfigurationBuilder.TagStatus
Status of the tag used in the Templater Editor.
|
Modifier and Type | Method and Description |
---|---|
EditorConfigurationBuilder |
addAlias(java.lang.String prefix,
java.lang.String alias)
To simplify tag management long tags can be shortened via aliases.
|
DocumentFactoryBuilder |
configure(boolean embedSchema)
Finish configuring the Microsoft Office Templater Editor setup.
|
EditorConfigurationBuilder |
debugLog(boolean capture)
Capturing debug log will allow inspection of every Templater processing step.
|
EditorConfigurationBuilder |
issuesListing(boolean show)
When tag detection and analysis is enabled, Templater Editor will
search for various issues in the document.
|
EditorConfigurationBuilder |
metadataResolver(EditorConfigurationBuilder.MetadataProvider customResolver)
To make tags more useful and friendly, additional metadata can be attached to schema.
|
EditorConfigurationBuilder |
tagDetection(boolean enabled)
Continuously run tag detection on any change in the document.
|
EditorConfigurationBuilder |
tagListing(boolean show)
Show tag listing when opening up document.
|
EditorConfigurationBuilder |
tagManagement(boolean allow)
Is the user allowed to specify their own tags.
|
EditorConfigurationBuilder tagManagement(boolean allow)
allow
- allow user to add/remove tagsEditorConfigurationBuilder tagListing(boolean show)
show
- list available tagsEditorConfigurationBuilder tagDetection(boolean enabled)
issuesListing
can be setenabled
- enable tag detection and analysisEditorConfigurationBuilder issuesListing(boolean show)
show
- list errors, warnings and suggestionsEditorConfigurationBuilder addAlias(java.lang.String prefix, java.lang.String alias)
prefix
- long tag prefix which can be replaced with aliasalias
- tag alias for specific prefixEditorConfigurationBuilder metadataResolver(EditorConfigurationBuilder.MetadataProvider customResolver)
To make tags more useful and friendly, additional metadata can be attached to schema. This can be used to explain the tag purpose, how it should be used, along with putting them in categories and providing example value.
Custom callback can be registered here which can provide additional metadata for specific class. Metadata should specify every relevant property as a key with value pair consisting from its metadata description.
customResolver
- provide additional metadata for specified typeEditorConfigurationBuilder debugLog(boolean capture)
Capturing debug log will allow inspection of every Templater processing step.
This can help to better understand how Templater works, or diagnose an issue with processing.
capture
- capture debug logDocumentFactoryBuilder configure(boolean embedSchema)
Finish configuring the Microsoft Office Templater Editor setup.
Instead of normal processing, schema can be embedded into OOXML documents. At the end of the processing document will remain the same as the original template but schema will be embedded into the document which can be used from the Templater Editor.
If schema is not embedded, it will be stripped from the output document, which is expected use case when creating the final document.
embedSchema
- embed schema