Skip to content
Laurent Schoelens edited this page Jan 22, 2024 · 5 revisions

JAXB Plugins (former JAXB2 Basics)

JAXB Plugins is an open source project, part of the JAXB Tools repository, which provides useful plugins and tools for JAXB reference implementation.

Documentation

Using JAXB Plugins

JAXB Plugins - Available plugins

These plugins are available :

New plugins from 2.0.4 version :

  • Commons Lang Plugin - generates the toString(), hashCode() and equals() methods using Apache commons-lang3.
  • Default Value Plugin - modifies the JAXB code model to set default values to the schema default attribute.
  • Fluent API Plugin - support a fluent api in addition to the default (JavaBean) setter methods.
  • Namespace Prefix Plugin - adds javax.xml.bind.annotation.XmlNs (for JAXB2) or jakarta.xml.bind.annotation.XmlNs (for JAXB 3+) annotations to package-info.java files
  • Value Constructor Plugin - generates another constructor, taking an argument for each field in the class and initialises the field with the argument value.

New plugins from 4.0.1 version :

Credits

Clone this wiki locally