forked from finos/rune-dsl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Story/915/configurable tabulators (finos#791)
* add config for tabulators * Test updated rosettta configuration * save * Implement new tabulator naming logic * rename * test config tabulate generation * add configurable tabulator test * update gitignore so that it doesn't ignore code inside report folders
- Loading branch information
Showing
16 changed files
with
371 additions
and
18 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
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
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
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
30 changes: 30 additions & 0 deletions
30
rosetta-lang/src/main/java/com/regnosys/rosetta/config/RosettaTabulatorConfiguration.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,30 @@ | ||
package com.regnosys.rosetta.config; | ||
|
||
import java.util.List; | ||
|
||
import javax.inject.Inject; | ||
|
||
public class RosettaTabulatorConfiguration { | ||
private final List<String> annotations; | ||
|
||
public RosettaTabulatorConfiguration(List<String> annotations) { | ||
this.annotations = annotations; | ||
} | ||
|
||
public List<String> getAnnotations() { | ||
return annotations; | ||
} | ||
|
||
public static class Provider implements javax.inject.Provider<RosettaTabulatorConfiguration> { | ||
private final RosettaConfiguration config; | ||
@Inject | ||
public Provider(RosettaConfiguration config) { | ||
this.config = config; | ||
} | ||
|
||
@Override | ||
public RosettaTabulatorConfiguration get() { | ||
return config.getGenerators().getTabulators(); | ||
} | ||
} | ||
} |
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
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
...ng/src/main/java/com/regnosys/rosetta/config/file/RosettaTabulatorConfigurationMixin.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.regnosys.rosetta.config.file; | ||
|
||
import java.util.List; | ||
|
||
import com.fasterxml.jackson.annotation.JsonCreator; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
public abstract class RosettaTabulatorConfigurationMixin { | ||
@JsonCreator | ||
public RosettaTabulatorConfigurationMixin(@JsonProperty("annotations") List<String> annotations ) {} | ||
|
||
} |
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
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
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
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
Oops, something went wrong.