Skip to content

Generates Java source files from the SPDX spec version 3+ suitable for inclusion in the SPDX Java Library

License

Notifications You must be signed in to change notification settings

spdx/spdx-model-to-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spdx-model-to-java

Generates Java source files from the SPDX spec version 3+ suitable for inclusion in the SPDX Java Library

Usage CLI

To run the utility as a command line interface, execute the main method ShaclToJavaCli with 2 parameters:

  • model file in turtle format
  • output directory

Usage Library

To use the code as a library, the main entry point is the ShaclToJava class which takes a single parameter of the SPDX Ontology model.

The generate(dir) method will generate the Java files in the dir directory.

Development Status

This is a utility specifically built and tested for use in the SPDX Java Library.
It is relatively stable for that purpose. There are still a few items marked as TODO in the code and some of the generated code will produce warnings in Java linter (e.g. unused import statements).

About

Generates Java source files from the SPDX spec version 3+ suitable for inclusion in the SPDX Java Library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages