https://github.com/raphw/xjcoptional
A XJC plugin to make getters of optional properties Optional.
https://github.com/raphw/xjcoptional
Last synced: 12 months ago
JSON representation
A XJC plugin to make getters of optional properties Optional.
- Host: GitHub
- URL: https://github.com/raphw/xjcoptional
- Owner: raphw
- Created: 2018-11-30T13:15:35.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-04-23T20:32:26.000Z (almost 2 years ago)
- Last Synced: 2025-03-18T21:54:47.533Z (12 months ago)
- Language: Java
- Size: 18.6 KB
- Stars: 6
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This plugin changes getters for properties that are not optional singletons in an XSD file (*minOccurs = 0* and *maxOccurs = 1*) to return an `Optional` value.
Example use in Maven when building with the *maven-jaxb2-plugin*:
```xml
org.jvnet.jaxb2.maven2
maven-jaxb2-plugin
LATEST
xsd-generate
generate-sources
generate
true
-Xnullsafegetters
codes.rafael.xjc
nullsafe
LATEST
```
Under the Apache 2.0 license.