An open API service indexing awesome lists of open source software.

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.

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.