Class DataEntityRecordRewriter

java.lang.Object
com.vaadin.copilot.javarewriter.DataEntityRecordRewriter

public class DataEntityRecordRewriter extends Object
Class/Record definition related functions for Java Rewriter This class generates a record/class to host data entities used in advanced data components like Grid
  • Field Details

  • Constructor Details

    • DataEntityRecordRewriter

      public DataEntityRecordRewriter(com.github.javaparser.ast.CompilationUnit compilationUnit)
  • Method Details

    • addOrGetDataEntityRecordName

      public String addOrGetDataEntityRecordName(Map<String,Object> entityFields, String dataEntityRecordName)
      Finds the Record Declaration from given complication unit that has Label, Value and Enabled parameters. Creates one with LabelAndValue name if not found.
      Returns:
      of the record name