Module pro.verron.officestamper
Package pro.verron.officestamper.preset
Interface CommentProcessorFactory.IParagraphRepeatProcessor
- Enclosing class:
CommentProcessorFactory
public static interface CommentProcessorFactory.IParagraphRepeatProcessor
Implementations of this interface are responsible for processing the repeat paragraph instruction.
The repeat paragraph instruction is a comment that contains the following text:
repeatParagraph(...)
Where the three dots represent an expression that evaluates to a list of objects. The processor then copies the paragraph once for each object in the list and evaluates all expressions within each copy against the respective object.
- Since:
- 1.0.0
- Version:
- ${version}
- Author:
- Joseph Verron, Romain Lamarche
-
Method Summary
Modifier and TypeMethodDescriptionvoid
repeatParagraph
(List<Object> objects) May be called to mark a paragraph to be copied once for each element in the passed-in list.
-
Method Details
-
repeatParagraph
May be called to mark a paragraph to be copied once for each element in the passed-in list. Within each copy of the row, all expressions are evaluated against one of the objects in the list.- Parameters:
objects
- the objects which serve as context root for expressions found in the template table row.
-