package atdj

  1. Overview
  2. Docs
Java code generation for ATD.

Install

Dune Dependency

Authors

Maintainers

Sources

1.13.0.tar.gz
md5=da11b6157d5674e2d27cfd401eb8003a

Description

Atdj is a program that generates a Java interface from type definitions. In particular, given a set of ATD type definitions, this tool generates a set of Java classes representing those types with built-in JSON serializers and deserializers.

The primary benefits of using the generated interface, over manually manipulating JSON strings from within Java, are safety and ease of use. Specifically, the generated interface offers the following features:

  • JSON strings are automatically checked for correctness with respect to the ATD specification.

  • Details such as optional fields and their associated default values are automatically handled.

Published: 27 May 2018

README

README.md

ATD stands for Adaptable Type Definitions. It is a syntax for defining cross-language data types. It is used as input to generate efficient serializers, deserializers and validators. The current target languages are OCaml and Java.

The following opam packages are provided by the atd project:

  • atdgen: executable that generates OCaml code dealing with JSON and biniou data formats

  • atdj: executable that generates Java code dealing with JSON

  • atd: library for parsing atd files used by code generators

Documentation

The ATD language and its OCaml library were originally designed and implemented at MyLife by Martin Jambon. We distribute the source code under the terms of a BSD license.

Contribution guidelines

Dependencies (4)

  1. atdgen >= "1.13.0" & < "2.10.0"
  2. atd >= "1.13.0" & < "2.0.0"
  3. jbuilder >= "1.0+beta7"
  4. ocaml >= "4.02.3"

Dev Dependencies (1)

  1. conf-openjdk with-test

Used by

None

Conflicts

None