Class ValueOperatorSpec

java.lang.Object
nl.datasteel.crudcraft.codegen.writer.search.ValueOperatorSpec
All Implemented Interfaces:
OperatorSpec

public class ValueOperatorSpec extends Object implements 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 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 interface OperatorSpec
      Parameters:
      cls - the TypeSpec builder to which fields will be added
      prop - the property name for the operator
      type - the type of the operator value