1 | package pro.verron.officestamper.api; | |
2 | ||
3 | import org.docx4j.openpackaging.packages.WordprocessingMLPackage; | |
4 | ||
5 | /** | |
6 | * The ParagraphPlaceholderReplacer interface represents an object that can resolve expressions in a paragraph | |
7 | * and replace them with values provided by an expression resolver. | |
8 | */ | |
9 | public interface ParagraphPlaceholderReplacer { | |
10 | ||
11 | /** | |
12 | * Finds expressions in the given paragraph and replaces them with the values provided by the expression resolver. | |
13 | * <p> | |
14 | * Replace the previous {@link #resolveExpressionsForParagraph(Paragraph, Object, WordprocessingMLPackage)} | |
15 | * | |
16 | * @param docxPart the docxPart in which to replace all expressions | |
17 | * @param paragraph the paragraph in which to replace expressions | |
18 | * @param context the context root | |
19 | */ | |
20 | default void resolveExpressionsForParagraph( | |
21 | DocxPart docxPart, | |
22 | Paragraph paragraph, | |
23 | Object context | |
24 | ) { | |
25 |
1
1. resolveExpressionsForParagraph : removed call to pro/verron/officestamper/api/ParagraphPlaceholderReplacer::resolveExpressionsForParagraph → NO_COVERAGE |
resolveExpressionsForParagraph(paragraph, context, docxPart.document()); |
26 | } | |
27 | ||
28 | /** | |
29 | * Finds expressions in the given paragraph and replaces them with the values provided by the expression resolver. | |
30 | * | |
31 | * @param paragraph the paragraph in which to replace expressions | |
32 | * @param context the context root | |
33 | * @param document the document in which to replace all expressions | |
34 | * | |
35 | * @deprecated replaced by {@link #resolveExpressionsForParagraph(DocxPart, Paragraph, Object)} | |
36 | */ | |
37 | @Deprecated(since = "2.3", forRemoval = true) | |
38 | void resolveExpressionsForParagraph( | |
39 | Paragraph paragraph, | |
40 | Object context, | |
41 | WordprocessingMLPackage document | |
42 | ); | |
43 | } | |
Mutations | ||
25 |
1.1 |