Class DOMReader

    • Constructor Detail

      • DOMReader

        public DOMReader​(String fileName)
    • Method Detail

      • getCells

        public Object[][] getCells​(SheetDescriptor sheet)
        Description copied from interface: ExcelReader
        Parse and get all cells from a given sheet
        Specified by:
        getCells in interface ExcelReader
        Parameters:
        sheet - sheet to parse
        Returns:
        parsed objects with types as in Excel
      • isUse1904Windowing

        public boolean isUse1904Windowing()
        Description copied from interface: ExcelReader
        Sometimes we need to convert parsed double value to date. For example a cell contains value 1.25, user sees it in Excel as 1.25 but in OpenL this value has a type Date. It should be converted from double to Date. (There is unit test for such case) We should get this property from workbook and use it in DateUtil.getJavaDate(double, boolean) to convert it correctly.
        Specified by:
        isUse1904Windowing in interface ExcelReader
        Returns:
        The setting for a given workbook
      • getTableStyles

        public TableStyles getTableStyles​(SheetDescriptor sheet,
                                          IGridRegion tableRegion)
        Description copied from interface: ExcelReader
        Get styles for a given table
        Specified by:
        getTableStyles in interface ExcelReader
        Parameters:
        sheet - sheet containing the table
        tableRegion - region needed to get styles for a given table
        Returns:
        Cell styles