Package org.spdx.tools.model2java
Class JavaCodeGenerator
java.lang.Object
org.spdx.tools.model2java.JavaCodeGenerator
Generates Java code based on a collection of
SpecVersionContainers.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJavaCodeGenerator(List<SpecVersionContainer> specVersions) Class to generate Java code from a list of SPDX specifications -
Method Summary
-
Field Details
-
VERSION_SUFFIX
- See Also:
-
-
Constructor Details
-
JavaCodeGenerator
Class to generate Java code from a list of SPDX specifications- Parameters:
specVersions- SpecVersionContainer which contains the model files for a given version of an SPDX Spec
-
-
Method Details
-
generate
public List<String> generate(File dir) throws IOException, ShaclToJavaException, InvocationTargetException, IllegalAccessException 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 ontologyInvocationTargetException- on errors copying property values between model objectsIllegalAccessException- on errors copying property values between model objects
-