Skip to content

Repository files navigation

BO4E-Java-Generator

This repository contains the code and workflow used to generate java classes implementing the BO4E-Standard. It uses the BO4E-Schemas and the results are automatically published to BO4E-Java.

Synopsis

  • node quicktype.js [options] --outputdir--inputdir
  • node quicktype.js --help

Options

namealiastypedescription
inputistringThe input directory that holds the json-schemas and defines the file structure.
outputostringThe output directory.
packagepstringThe package to put in the classes package signature (default: same as output).
keepkbooleanPrevent overwriting of existing files.
removerbooleanDelete all existing files in output directory.
createcbooleanCreate output directory if it does not exist.
annotateabooleanAdd JsonInclude Annotations.
verbosevbooleanTurn on debugging output.
quietqbooleanSilence output.
helphbooleanDisplay an usage guide.

Important to note

  • all fields are nullable
  • dates are of type OffsetDateTime
  • uses List, not array
  • all classes in bo extend Geschaeftsobjekt
  • all classes in com extend COM
  • Geschaeftsobjekt and COM are added, even if not included in the schemas
  • every class has a no-args-constructor and a Builder but no all-args-constructor
  • Comments are copied from the schemas, their correctness is not validated

About

Code used to generate java classes that implement the BO4E standard

Resources

Stars

4 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages