This project provides a toolset for Cobol to Java, Xml and JSON data conversion.
Cobol data, as it originates from mainframes, is binary. Legstar uses a cobol copybook (metadata describing the cobol data) to figure out how to convert that binary data into a format that is usable in the Java ecosystem.
Guides:
In the long term, legstar-v3 is meant to replace legstar-core2.
The major differences between legstar-v3 and legstar-core2 are:
- The legstar-v3 copybook parser is based on CongoCC and has no runtime dependencies. legstar-core2 uses Antlr3 and requires the Antlr runtime.
- legstar-v3 does not use XML Schemas. Instead, it provides java annotations for cobol. These annotations are injected in generated java classes by legstar-generator. The annotations are used at runtime by legstar-converter.
- For XML support, legstar-jaxb-generator injects JAXB Annotations alongside the cobol annotations in the generated java classes. At runtime legstar-jaxb-converter uses these annotations to produce an XML instance.
- legstar-v3 offers JSON support. For this, legstar-json-generator injects JACKSON annotations alongside the cobol annotations in the generated java classes. At runtime legstar-json-converter uses these annotations to produce a JSON instance.