Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow resolving of complex placeholder data
To allow creation of complex placeholder data (with custom placeholder registries, options, and parental relations), an additional interface `PlaceholderDataFactory` is introduced, which can be used in applications using the library.
- Loading branch information
1 parent
24e3e5c
commit 3fed2dc
Showing
7 changed files
with
60 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ plugins { | |
} | ||
|
||
group 'com.docutools' | ||
version = '1.6.6' | ||
version = '1.6.7-beta.1' | ||
|
||
java { | ||
toolchain { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
src/main/java/com/docutools/jocument/impl/excel/util/PlaceholderDataFactory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.docutools.jocument.impl.excel.util; | ||
|
||
import com.docutools.jocument.CustomPlaceholderRegistry; | ||
import com.docutools.jocument.GenerationOptions; | ||
import com.docutools.jocument.PlaceholderData; | ||
import com.docutools.jocument.PlaceholderResolver; | ||
|
||
public interface PlaceholderDataFactory { | ||
PlaceholderData create(CustomPlaceholderRegistry customPlaceholderRegistry, | ||
GenerationOptions options, | ||
PlaceholderResolver parent); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
src/test/java/com/docutools/jocument/sample/model/Planet.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.docutools.jocument.sample.model; | ||
|
||
import com.docutools.jocument.impl.excel.util.PlaceholderDataFactory; | ||
|
||
public record Planet(PlaceholderDataFactory cities) { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.