public interface ElementHook
ParagraphElements to add content to the output.| Modifier and Type | Method and Description |
|---|---|
default void |
createArticles()
Create articles.
|
void |
handleElement(ParagraphElement element)
Handle an element.
|
default void |
startArticle(org.docgene.model.XMLArticle article)
Start the processing of an article.
|
java.util.Set<java.lang.String> |
supportedElements()
Return the set of
StyledElement.getDeclaration()s which will be handled by this ElementHook. |
java.util.Set<java.lang.String> supportedElements()
StyledElement.getDeclaration()s which will be handled by this ElementHook. The
handleElement(org.docgene.model.ParagraphElement) method will only be called for those elements.default void createArticles()
default void startArticle(org.docgene.model.XMLArticle article)
article - the articlevoid handleElement(ParagraphElement element)
StyledElement.getDeclaration() is guaranteed to be one of the keys returned by
supportedElements().element - the elementCopyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence