Class ValueOperatorSpec
java.lang.Object
nl.datasteel.crudcraft.codegen.writer.search.ValueOperatorSpec
- All Implemented Interfaces:
OperatorSpec
Handles value operators in search requests, such as equality and inequality.
This class adds fields for these operators to the generated search request DTO.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ValueOperatorSpec
public ValueOperatorSpec()
-
-
Method Details
-
addFields
public void addFields(com.squareup.javapoet.TypeSpec.Builder cls, String prop, com.squareup.javapoet.TypeName type) Adds fields for value operators to the given TypeSpec builder. This method creates private fields for the operator and its value, along with corresponding getter and setter methods.- Specified by:
addFields
in interfaceOperatorSpec
- Parameters:
cls
- the TypeSpec builder to which fields will be addedprop
- the property name for the operatortype
- the type of the operator value
-