Class FieldPartExtractorRegistry
java.lang.Object
nl.datasteel.crudcraft.codegen.reader.field.FieldPartExtractorRegistry
Registry for field part extractors.
Provides a mapping from field part types to their corresponding extractors.
This allows for dynamic extraction of field parts based on their type.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Map
<Class<?>, FieldPartExtractor<?>> A map that associates field part types with their corresponding extractors. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> FieldPartExtractor
<T> Retrieves the extractor for a given field part type.
-
Field Details
-
EXTRACTORS
A map that associates field part types with their corresponding extractors. Each extractor is responsible for extracting a specific part of a field.
-
-
Method Details
-
get
Retrieves the extractor for a given field part type.- Type Parameters:
T
- the type of the field part- Parameters:
partType
- the class of the field part type- Returns:
- the extractor for the specified field part type, or null if not found
-