1 | package pro.verron.officestamper.preset; | |
2 | ||
3 | import pro.verron.officestamper.api.OfficeStamperException; | |
4 | import pro.verron.officestamper.api.PostProcessor; | |
5 | import pro.verron.officestamper.preset.postprocessors.cleanendnotes.RemoveOrphanedEndnotesProcessor; | |
6 | import pro.verron.officestamper.preset.postprocessors.cleanfootnotes.RemoveOrphanedFootnotesProcessor; | |
7 | ||
8 | /// The Postprocessors class provides static utility methods for obtaining implementations of the | |
9 | /// [PostProcessor] interface that perform specific post-processing operations on | |
10 | /// WordprocessingMLPackage documents. | |
11 | /// | |
12 | /// This class is a utility class and cannot be instantiated. | |
13 | public class Postprocessors { | |
14 | private Postprocessors() { | |
15 | throw new OfficeStamperException("This is a utility class and cannot be instantiated"); | |
16 | } | |
17 | ||
18 | /// Creates a PostProcessor that removes orphaned footnotes from a WordprocessingMLPackage document. | |
19 | /// An orphaned footnote is a footnote that is defined in the document but does not have a corresponding | |
20 | /// reference in the main content. This PostProcessor ensures that such unused footnotes are cleaned up, | |
21 | /// maintaining the structural integrity of the document. | |
22 | /// | |
23 | /// @return a PostProcessor instance that performs the removal of orphaned footnotes | |
24 | public static PostProcessor removeOrphanedFootnotes() { | |
25 |
1
1. removeOrphanedFootnotes : replaced return value with null for pro/verron/officestamper/preset/Postprocessors::removeOrphanedFootnotes → KILLED |
return new RemoveOrphanedFootnotesProcessor(); |
26 | } | |
27 | ||
28 | /// Creates a PostProcessor that removes orphaned endnotes from a WordprocessingMLPackage document. | |
29 | /// An orphaned endnote is an endnote that is defined in the document but does not have a corresponding | |
30 | /// reference in the main content. This PostProcessor ensures that such unused endnotes are cleaned up, | |
31 | /// maintaining the integrity and consistency of the document. | |
32 | /// | |
33 | /// @return a PostProcessor instance that performs the removal of orphaned endnotes | |
34 | public static PostProcessor removeOrphanedEndnotes() { | |
35 |
1
1. removeOrphanedEndnotes : replaced return value with null for pro/verron/officestamper/preset/Postprocessors::removeOrphanedEndnotes → KILLED |
return new RemoveOrphanedEndnotesProcessor(); |
36 | } | |
37 | } | |
Mutations | ||
25 |
1.1 |
|
35 |
1.1 |