What's Changed
Features
- Add the
PostProcessor
concept to be able to add cleaners or summaries at stamping finish. - #68 Filled to
displayXXXIf
panoply with:displayParagraphIf(boolean)
,displayParagraphIfPresent(object)
anddisplayParagraphIfAbsent(object)
displayTableRowIf(boolean)
,displayTableRowIfPresent(object)
anddisplayTableRowIfAbsent(object)
displayTableIf(boolean)
,displayTableIfPresent(object)
anddisplayTableIfAbsent(object)
displayWordsIf(boolean)
,displayWordsIfPresent(object)
anddisplayWordsIfAbsent(object)
displayDocPartIf(boolean)
,displayDocPartIfPresent(object)
anddisplayDocPartIfAbsent(object)
- The two provided evaluation context configurer now include the classic Get Accessor and the Map Accessor, so the object used as context can be much more flexible.
- ie.
${name}
can now refer to an objectgetName()
method or to a mapget("name")
value.
- ie.
Bugfixes
- BREAKING -
Paragraph#getComment
now returns a Collection instead of an Optional, because one paragraph can have several comments.
Fixes a bug when commenting several groups of runs by different comments in a single paragraph. - #69 Office-stamper is now aware of Footnotes and Endnotes, it only cleans orphaned notes with
standardWithPreprocessing
configuration for now, but probably going to run the stamping as well in future versions. - #510 All
repeatXXX
can now accept Iterable as input
Dependencies
-
Bump
org.docx4j:docx4j-core
from11.5.0
to11.5.1
-
Bump
org.docx4j:docx4j-JAXB-ReferenceImpl
from11.5.0
to11.5.1
-
Bump
org.springframework:spring-expression
from6.1.14
to6.2.1
-
Bump
org.springframework:spring-context
from6.1.14
to6.2.1
Continuous Integration
-
Bump
org.junit.jupiter:junit-jupiter
from5.11.3
to5.11.4
-
Bump
org.pitest:pitest-maven
from1.17.0
to1.17.3
-
Bump
org.apache.maven.plugins:maven-surefire-plugin
from3.5.1
to3.5.2
-
Bump
org.apache.maven.plugins:maven-site-plugin
from3.20.0
to3.21.0
-
Bump
org.apache.maven.plugins:maven-project-info-reports-plugin
from3.7.0
to3.8.0
-
Bump
org.apache.maven.plugins:maven-surefire-report-plugin
from3.5.1
to3.5.2
-
Bump
org.apache.maven.reporting:maven-reporting-exec
from2.0.0-M14
to2.0.0
-
Bump
org.asciidoctor:asciidoctor-maven-plugin
from3.1.0
to3.1.1
-
Bump
org.apache.maven.plugins:maven-javadoc-plugin
from3.10.1
to3.11.2
-
Bump
org.apache.maven.plugins:maven-gpg-plugin
from3.2.5
to3.2.7
Refactorings
- Removed the old
ObjectDeleter
utility class to use mostlyWmlUtils#remove
method instead. - All Lang info is removed with
standardWithPreprocessing
configuration now.
Tests
- Create the ObjectContextFactory, and the MapContextFactory to test all use cases with POJO Beans and Map equally.
- Fix a bug in Locale when some test failed
- Move processors-specific test outside the DefaultTest class
- #114 added a test to trace this still unresolved issue.
- Word 2 String now includes comments, endnotes and footnotes
- String 2 Word now includes comments
Full Changelog: v2.6.0...v2.7.0