Class ShaclToJava

java.lang.Object
org.spdx.tools.model2java.ShaclToJava

public class ShaclToJava extends Object
Generates Java source class files for the SPDX Java Library from the RDF Owl Document generated from the spec model
Author:
Gary O'Neall
  • Constructor Details

    • ShaclToJava

      public ShaclToJava(org.apache.jena.ontology.OntModel model)
      Parameters:
      model - model to use to generate the java files
  • Method Details

    • generate

      public List<String> generate(File dir) throws IOException, ShaclToJavaException
      Generates source and test files and store them in the dir
      Parameters:
      dir - Directory to hold the java source
      Returns:
      list of warnings - if empty, all files were generated successfully
      Throws:
      IOException - for any issues storing the files
      ShaclToJavaException - errors in the ontology