Class SearchFieldCollector
java.lang.Object
nl.datasteel.crudcraft.codegen.writer.search.SearchFieldCollector
Collects searchable fields from a model descriptor and its child models
up to a specified depth, creating a list of SearchField objects.
This is used to generate search functionality for CrudCraft entities.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a SearchFieldCollector with the given WriteContext. -
Method Summary
Modifier and TypeMethodDescriptioncollect
(ModelDescriptor root, int depth) Collects searchable fields from the given model descriptor and its children up to the specified depth.
-
Constructor Details
-
SearchFieldCollector
Constructs a SearchFieldCollector with the given WriteContext.- Parameters:
ctx
- the WriteContext containing environment and utilities for writing
-
-
Method Details
-
collect
Collects searchable fields from the given model descriptor and its children up to the specified depth.- Parameters:
root
- the root model descriptor to start collecting fromdepth
- the maximum depth to traverse child models- Returns:
- a list of SearchField objects representing searchable fields
-