Class ClassGenerator
java.lang.Object
ch.helvethink.odoo4java.generator.ClassGenerator
Main class to generate models.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic voidgenerateClassNG(List<String> excludedPrefixes, List<String> includedPrefixes, String pathToGenerate, String generatedRootPackage, String modelName, Map<String, Map<String, Object>> fields) Main method to generate a class for a model All attributes of the object are public (no getters and setters), this is very conscious
-
Field Details
-
LOG
public static final org.slf4j.Logger LOGSimple Logger
-
-
Method Details
-
generateClassNG
public static void generateClassNG(List<String> excludedPrefixes, List<String> includedPrefixes, String pathToGenerate, String generatedRootPackage, String modelName, Map<String, Map<String, throws IOExceptionObject>> fields) Main method to generate a class for a model All attributes of the object are public (no getters and setters), this is very conscious- Parameters:
pathToGenerate- Path where we want to generate files - default will be "target"modelName- Name of the model we want to generate a classfields- Fields that have been returned from Odoo for this model- Throws:
IOException- If we can't write to the destination directory
-