Class EnumDTOGenerator
java.lang.Object
no.sikt.graphitron.generators.abstractions.AbstractClassGenerator
no.sikt.graphitron.generators.abstractions.AbstractSchemaClassGenerator<T>
no.sikt.graphitron.generators.dto.DTOGenerator<EnumDefinition>
no.sikt.graphitron.generators.dto.EnumDTOGenerator
- All Implemented Interfaces:
ClassGenerator
-
Field Summary
Fields inherited from class no.sikt.graphitron.generators.dto.DTOGenerator
EQUALS, HASH_CODE, OBJFields inherited from class no.sikt.graphitron.generators.abstractions.AbstractSchemaClassGenerator
processedSchema -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionno.sikt.graphitron.javapoet.TypeSpecgenerate(EnumDefinition enumDefinition) List<no.sikt.graphitron.javapoet.TypeSpec>Generate the classes and return the list of TypeSpecs.Methods inherited from class no.sikt.graphitron.generators.dto.DTOGenerator
getDefaultSaveDirectoryName, getDTOGetterMethodNameForField, getDTOVariableNameForField, getFileNameSuffix, getTypeNameForField, getTypeSpecBuilderMethods inherited from class no.sikt.graphitron.generators.abstractions.AbstractClassGenerator
generateAllAsMap, generateAllToDirectory, getGeneratedClassName, getSpec, getSpec, setDependencies, writeToFile, writeToFile, writeToString
-
Constructor Details
-
EnumDTOGenerator
-
-
Method Details
-
generate
- Specified by:
generatein classAbstractSchemaClassGenerator<EnumDefinition>- Parameters:
enumDefinition- AGenerationTargetobject representing a source from which a class should be generated.- Returns:
- A complete class in the form of a javapoet
TypeSpec.
-
generateAll
Description copied from interface:ClassGeneratorGenerate the classes and return the list of TypeSpecs.
-