ParagraphPlaceholderReplacer.java

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

Mutations

21

1.1
Location : resolveExpressionsForParagraph
Killed by : none
removed call to pro/verron/officestamper/api/ParagraphPlaceholderReplacer::resolveExpressionsForParagraph → NO_COVERAGE

Active mutators

Tests examined


Report generated by PIT 1.21.0