Class DtoOptionsExtractor

java.lang.Object
nl.datasteel.crudcraft.codegen.reader.field.DtoOptionsExtractor
All Implemented Interfaces:
FieldPartExtractor<DtoOptions>

public class DtoOptionsExtractor extends Object implements FieldPartExtractor<DtoOptions>
Singleton extractor for DtoOptions. This class implements the FieldPartExtractor interface
  • Field Details

    • INSTANCE

      public static final DtoOptionsExtractor INSTANCE
      Singleton instance of DtoOptionsExtractor.
  • Constructor Details

    • DtoOptionsExtractor

      public DtoOptionsExtractor()
  • Method Details

    • extract

      public DtoOptions extract(VariableElement field, ProcessingEnvironment env)
      Extracts a part of the field from the given VariableElement.
      Specified by:
      extract in interface FieldPartExtractor<DtoOptions>
      Parameters:
      field - the VariableElement representing the field
      env - the ProcessingEnvironment for accessing annotations and other processing features
      Returns:
      a DtoOptions object representing the DTO options for the field,