| 1 | package pro.verron.officestamper.preset.processors.repeat; | |
| 2 | ||
| 3 | import org.jspecify.annotations.Nullable; | |
| 4 | import pro.verron.officestamper.api.OfficeStamper; | |
| 5 | import pro.verron.officestamper.api.ProcessorContext; | |
| 6 | import pro.verron.officestamper.preset.CommentProcessorFactory; | |
| 7 | ||
| 8 | ||
| 9 | /// Processes the `<repeatDocPart>` comment. Uses the [OfficeStamper] to stamp sub-documents and copies the resulting | |
| 10 | /// content to the correct position in the main document. | |
| 11 | /// | |
| 12 | /// @author Joseph Verron | |
| 13 | /// @author Youssouf Naciri | |
| 14 | /// @version ${version} | |
| 15 | /// @since 1.3.0 | |
| 16 | public class RepeatDocPartProcessor | |
| 17 | extends RepeatProcessor | |
| 18 | implements CommentProcessorFactory.IRepeatDocPartProcessor { | |
| 19 | ||
| 20 | ||
| 21 | /// Creates a new [RepeatDocPartProcessor] instance. | |
| 22 | /// | |
| 23 | /// @param processorContext the processor context | |
| 24 | public RepeatDocPartProcessor(ProcessorContext processorContext) { | |
| 25 | super(processorContext); | |
| 26 | } | |
| 27 | ||
| 28 | @Override | |
| 29 | public void repeatDocPart(@Nullable Iterable<Object> items) { | |
| 30 |
1
1. repeatDocPart : removed call to pro/verron/officestamper/preset/processors/repeat/RepeatDocPartProcessor::repeat → KILLED |
repeat(items); |
| 31 | } | |
| 32 | ||
| 33 | } | |
Mutations | ||
| 30 |
1.1 |