Commit 311fcba
Add Mustache-based template generator, including support for custom hooks, debugging options, and schema-driven rendering configurations.
Provide example mustache templates to generate basic java types.
Ensure `ListElementInformationMixin` compliance in ListElementInformationMixinProvider.
Add utility rendering support in Mustache generator and implement `HttpClient` template for Java.
Refactor Mustache generator to unify resource and complex type view models, enhance template support, and eliminate unused `titleCase`.
Refactor Mustache generator to support parent-child relationships for complex types and resources. Enhance schema handling with URI-based references, add child type support to ViewModel generation, and update templates accordingly.
Add `@JsonTypeName` for improved polymorphic support in nested type templates
Add filtering support to Mustache generator with `FilterType`, enabling whitelists/blacklists for resources and complex types.
Refactor Mustache templates to unify resource and complex type handling by introducing `inner_resource_or_complex_type`. Update config.json, enhance polymorphic support, and add builder pattern support.
Enhance builder pattern in Mustache templates by introducing `ReentrantLock` for thread safety, refining `ArrayList` initialization, and adding default constructors to builders and resource classes. Update type-handling annotations and improve polymorphic support.
Introduce advanced builder pattern and feature support in Mustache templates. Add hashCode/equals, optional fields, wither methods, and improved polymorphic handling. Enhance ViewModel generation with detailed field/property flags and support for child/parent relationships. Update Maven config for spotless plugin and test dependencies. Add comprehensive `ResourceTest`.
Refactor Mustache Java templates to improve type handling and introduce date/time getter support. Update `config.json` mappings and streamline field getter logic using reusable templates.
Enhance Mustache Java templates with stricter `JsonAutoDetect` visibility for serialization control, refine `List.copyOf` logic for optional arrays, and update `ResourceTest` to include nested input serialization.
Refactor Mustache Java templates to enhance builder methods with improved support for array handling and input validation. Update imports for `Arrays` and adjust `ResourceTest` to refine task input serialization.
Enhance Mustache Java templates with improved support for `builder` feature. Refactor `config.json` and templates for `wither` integration. Update `ResourceTest` imports and task input handling. Refine Maven configuration to include `maven-source-plugin`. Optimize ViewModel generation with `NamedViewModel` ownership and streamlined primitive handling.
Refactor Mustache Java templates to replace `builder()` with `toBuilder()` in `wither` methods for consistency and improved reusability.
Update Mustache Java templates to enhance `toBuilder()` generation with conditional handling for child elements.
Update Mustache Java templates to add configurable `ResourceTest` generation and improve `type` handling in `config.json`.
Refactor Mustache Java templates to define `ResourceName` constants in resource classes, streamline `resourceClass` handling in `resource_names.mustache`, and update `config.json` paths for improved resource organization.
Enhance Mustache Java templates to add reusable extension filtering methods and integrate them into relevant resource and complex type templates.
Refactor Mustache Java templates to streamline `builder` handling by removing `wither` methods, introducing `final` modifiers for `toBuilder()` methods, and updating `config.json`. Enhance `ResourceTest` to include extension handling and additional validation.
Refactor Mustache Java templates to improve builder method generation by introducing reusable element handling for primitives and adjusting `config.json`. Update `ResourceTest` with new JSON serialization and extension handling. Remove outdated templates and refine field getter logic.
Update `ResourceTest` to refine description handling, add assertion for description equality, and adjust import order.
Refactor Mustache Java templates to enhance builder methods with support for primitive array elements, improve field getter handling, and streamline serialization logic.
Refactor Mustache Java templates and `config.json` to introduce `Primitive` type support, enhancing builder handling, serialization, and array element processing. Update `ResourceTest` to align with new primitive behaviors and add null safety checks for extension methods.
Refactor Mustache Java templates and `config.json` to introduce `Utils` class, adding equality methods for `OffsetDateTime` and lists, enhancing serialization and hash code handling. Update `ResourceTest` for `LocalDateTime` support and improve JSON serialization. Add `jackson-datatype-jsr310` dependency in `pom.xml`.
Enhance Mustache Java templates to add `CodeableConcept` behavior with `findFirstCodingBySystem` and `findCodingsBySystem` methods, refine `toBuilder()` handling, and integrate reusable behavior for complex types.
Make `findFirstCodingBySystem`, `findCodingsBySystem`, `findFirstExtensionByURL`, and `findExtensionsByURL` methods final in Mustache Java templates for improved immutability.
Add `toString` support to Mustache Java templates by updating `config.json` and integrating reusable `ToStringHelper` utility in `utils.mustache`. Include feature usage in relevant templates.
Add `toString` implementation to Mustache Java templates using `ToStringHelper`. Update `ResourceTest` with additional `toString` assertions and refine `utils.mustache` helper methods.
Extend `toString` template in Mustache Java to include primitive fields.
Configure Eclipse-based formatter for Mustache Java templates and update spotless plugin in `pom.xml`. Refactor templates to enhance null-safety annotations and streamline field declaration style.
Add reference handling in Mustache Java templates and `config.json`. Enhance `ResourceTest` with additional assertions and update `ResourceName` with utility methods for improved resource referencing.
Refactor `toString` implementation in Mustache Java templates to use `Collectors.joining`, improving code readability and reducing iteration logic.
Remove Eclipse-based formatter configuration and switch to Google Java Format in `pom.xml`. Update templates for streamlined annotation usage and add `toReference` method for resource references.
Refactor Mustache Java templates to remove redundant `final` modifiers, enhance clarity in private methods, and simplify `toString` implementation for improved readability.
Add dependency handling in Mustache Java templates and `config.json`. Update `ViewModelFactory` to collect and process resource and complex type dependencies.
Refactor Mustache Java templates to organize into `model` directory structure. Update `config.json` paths and add separate `pom.xml` files for `model` and `client-spring` modules. Simplify `sdk-parent` configuration with module-based dependency management.
Remove `client-spring` module and its `pom.xml` from Mustache Java templates. Update parent `pom.xml` to reflect module removal.1 parent 790395b commit 311fcba
54 files changed
Lines changed: 2924 additions & 0 deletions
File tree
- mustache/languages/java
- static
- model
- src/test/java/de/solutio/fhir/models/resources
- templates
- model
- features
- utils
- src
- commands
- generators/mustache
- generator
- types
- tests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
Lines changed: 69 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
0 commit comments