Package org.spdx.tools.model2java
Class ShaclToJava
java.lang.Object
org.spdx.tools.model2java.ShaclToJava
Generates Java source class files for the SPDX Java Library from the RDF Owl Document generated from the spec model
- Author:
- Gary O'Neall
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static enum
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ShaclToJava
public ShaclToJava(org.apache.jena.ontology.OntModel model) - Parameters:
model
- model to use to generate the java files
-
-
Method Details
-
generate
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 filesShaclToJavaException
- errors in the ontology
-