* removed not needed properties

This commit is contained in:
yhampe 2023-11-16 08:23:58 +01:00
parent b25d46291a
commit e203210ade
3 changed files with 0 additions and 6 deletions

View File

@ -29,7 +29,6 @@ public class DocumentStructure {
@Schema(description = "Object containing the extra field names, a table has in its properties field.")
public static class TableProperties {
public static final String FIRST_PAGE ="firstPage";
public static final String NUMBER_OF_ROWS = "numberOfRows";
public static final String NUMBER_OF_COLS = "numberOfCols";

View File

@ -34,8 +34,6 @@ public class Table implements SemanticNode {
int numberOfRows;
int numberOfCols;
int firstpage;
int emptyCells;
TextBlock textBlock;
@Builder.Default

View File

@ -46,8 +46,6 @@ public class PropertiesMapper {
public static Map<String, String> buildTableProperties(Table table) {
Map<String, String> properties = new HashMap<>();
Page page = table.getFirstPage();
properties.put(DocumentStructure.TableProperties.FIRST_PAGE, String.valueOf(page.getNumber()));
properties.put(DocumentStructure.TableProperties.NUMBER_OF_ROWS, String.valueOf(table.getNumberOfRows()));
properties.put(DocumentStructure.TableProperties.NUMBER_OF_COLS, String.valueOf(table.getNumberOfCols()));
return properties;
@ -73,7 +71,6 @@ public class PropertiesMapper {
public static void parseTableProperties(Map<String, String> properties, Table.TableBuilder builder) {
builder.firstpage(Integer.parseInt(properties.get(DocumentStructure.TableProperties.FIRST_PAGE)));
builder.numberOfRows(Integer.parseInt(properties.get(DocumentStructure.TableProperties.NUMBER_OF_ROWS)));
builder.numberOfCols(Integer.parseInt(properties.get(DocumentStructure.TableProperties.NUMBER_OF_COLS)));
}