Package com.vaadin.copilot.javarewriter
Class DataEntityRecordRewriter
java.lang.Object
com.vaadin.copilot.javarewriter.DataEntityRecordRewriter
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDataEntityRecordRewriter(com.github.javaparser.ast.CompilationUnit compilationUnit) -
Method Summary
-
Field Details
-
DEFAULT_ENTITY_RECORD_NAME
- See Also:
-
-
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
-