public interface PluginFactory
| Modifier and Type | Method and Description |
|---|---|
default CustomProperties |
getCustomProperties()
Return the CustomProperties (default is null, which means tht there are no custom properties).
|
default ElementHook |
getElementHook(DirectoryParser parser,
HookContext context)
Return the ElementHook defined by this factory.
|
java.lang.String |
getID()
Return the factory ID.
|
default java.util.Map<java.lang.String,java.lang.Boolean> |
getSupportedFeatures()
Return the supported features.
|
default java.lang.String |
getSupportedOutputFormat()
Return the supported output format (default is null, which means that no specific output format is supported).
|
default boolean |
hasElementHook()
Return true if this factory provides an
ElementHook. |
default DirectoryWriter |
newDirectoryWriter(ArticlesResolver resolver)
Return a new DirectoryWriter (default is null, which means that no specific DirectoryWriter is provided).Note that you should provide
a DirectoryWriter if the
getSupportedOutputFormat() does not return null. |
java.lang.String getID()
default java.util.Map<java.lang.String,java.lang.Boolean> getSupportedFeatures()
default CustomProperties getCustomProperties()
default java.lang.String getSupportedOutputFormat()
default DirectoryWriter newDirectoryWriter(ArticlesResolver resolver)
getSupportedOutputFormat() does not return null.resolver - the articles resolverdefault boolean hasElementHook()
ElementHook. Return false by default. Note that you must implement
the getElementHook(org.docgene.parser.DirectoryParser, org.docgene.parser.HookContext) accordingly.default ElementHook getElementHook(DirectoryParser parser, HookContext context)
hasElementHook()
accordingly.parser - the Director Parsercontext - the hook contextCopyright © 2016-2026 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence