JAXB2 Default Value Plugin - highsource/jaxb-tools GitHub Wiki

Default Value Plugin

Modifies the JAXB code model to set default values to the schema default attribute.

Currently, the following field types can be initialized :

  • Enumerations
  • String
  • Descendants of java.lang.Number
    • Byte
    • Double
    • Float
    • Integer
    • Long
    • Short
  • Boolean

Activation

The plugin is activated by the -Xdefault-value