Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

Minimal Java project that uses jsonschema2pojo to generate Java classes to write CEDAR JSON Schema-based template instances

License

Notifications You must be signed in to change notification settings

metadatacenter/cedar-archetype-instance-writer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CEDAR Archetype Instance Writer

Minimal Java project that uses jsonschema2pojo to generate Java classes that can write instances of CEDAR templates.

The ./src/main/resources/json-schema directory contains an example JSON Schema-based CEDAR template.

The ./src/main/resources/json directory contains an example JSON-based template instance corresponding to that template.

The main class org.metadatacenter.archetype.TemplateInstanceWriter contains an example of writing a template instance using a jsonschema2pojo-generated Java class.

Building and Running

To build this library you must have the following items installed:

First build the CEDAR parent project.

Get a copy of the latest code:

git clone https://github.com/metadatacenter/cedar-archetype-instance-writer.git

Change into the cedar-archetype-instance-writer directory:

cd cedar-archetype-instance-writer 

Then build it with Maven:

mvn clean install

To run:

mvn exec:java

About

Minimal Java project that uses jsonschema2pojo to generate Java classes to write CEDAR JSON Schema-based template instances

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages