Class AbstractMapperClassGenerator<T extends GenerationField>
java.lang.Object
no.sikt.graphitron.generators.abstractions.AbstractClassGenerator
no.sikt.graphitron.generators.abstractions.AbstractSchemaClassGenerator<T>
no.sikt.graphitron.generators.abstractions.AbstractMapperClassGenerator<T>
- All Implemented Interfaces:
ClassGenerator
- Direct Known Subclasses:
JavaRecordMapperClassGenerator,RecordMapperClassGenerator
public abstract class AbstractMapperClassGenerator<T extends GenerationField>
extends AbstractSchemaClassGenerator<T>
-
Field Summary
FieldsFields inherited from class no.sikt.graphitron.generators.abstractions.AbstractSchemaClassGenerator
processedSchema -
Constructor Summary
ConstructorsConstructorDescriptionAbstractMapperClassGenerator(ProcessedSchema processedSchema, boolean toRecord) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract booleanfilterProperties(GenerationField field) Generate the classes and return the list of TypeSpecs.booleanprotected booleantypeSpecFilter(TypeSpec spec) Methods inherited from class no.sikt.graphitron.generators.abstractions.AbstractSchemaClassGenerator
generateMethods inherited from class no.sikt.graphitron.generators.abstractions.AbstractClassGenerator
generateAllAsMap, generateAllToDirectory, getGeneratedClassName, getSpec, getSpec, setDependencies, writeToFile, writeToFile, writeToStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface no.sikt.graphitron.generators.abstractions.ClassGenerator
getFileNameSuffix
-
Field Details
-
DEFAULT_SAVE_DIRECTORY_NAME
- See Also:
-
-
Constructor Details
-
AbstractMapperClassGenerator
-
-
Method Details
-
generateAll
Description copied from interface:ClassGeneratorGenerate the classes and return the list of TypeSpecs. -
typeSpecFilter
-
filterProperties
-
getDefaultSaveDirectoryName
- Returns:
- The final directory path within the package where the classes are ultimately saved.
-
isToRecord
public boolean isToRecord()
-