Class IdentityExtractor
java.lang.Object
nl.datasteel.crudcraft.codegen.reader.model.IdentityExtractor
- All Implemented Interfaces:
ModelPartExtractor<ModelIdentity>
Extracts
ModelIdentity
from a model class.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IdentityExtractor
Singleton instance of IdentityExtractor. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionextract
(TypeElement cls, ProcessingEnvironment env) Extracts the identity of the model class.
-
Field Details
-
INSTANCE
Singleton instance of IdentityExtractor.
-
-
Constructor Details
-
IdentityExtractor
public IdentityExtractor()
-
-
Method Details
-
extract
Extracts the identity of the model class. This includes the model name, package name, fields, and base package.- Specified by:
extract
in interfaceModelPartExtractor<ModelIdentity>
- Parameters:
cls
- the TypeElement representing the model classenv
- processing environment for annotation utilities- Returns:
- a ModelIdentity object containing the extracted identity information
-