Class DataTableBuilder


  • public class DataTableBuilder
    extends TableBuilder
    The class is responsible for creating Data tables.
    Author:
    NSamatov
    • Constructor Detail

      • DataTableBuilder

        public DataTableBuilder​(XlsSheetGridModel gridModel)
        Creates new instance.
        Parameters:
        gridModel - represents interface for operations with excel sheets
    • Method Detail

      • writeHeader

        public void writeHeader​(String typeName,
                                String variableName,
                                ICellStyle style)
        Write a header of a data table
        Parameters:
        typeName - type name
        variableName - technical variable name
        style - cell style (can be null)
      • writeHeader

        public void writeHeader​(String typeName,
                                String variableName)
        Write a header of a data table
        Parameters:
        typeName - type name
        variableName - technical variable name
      • writeFieldNames

        public void writeFieldNames​(List<? extends DataTableField> fields)
        Write a field's description for a given data table (field technical and business names and their foreign keys).
        Parameters:
        fields - a fields list
      • writeFieldValues

        public void writeFieldValues​(Map<String,​String> fieldValues,
                                     ICellStyle cellStyle)
        Write a field values
        Parameters:
        fieldValues - a map containing values where a key is fully qualified field name
        style - cell style (can be null)