* removed not needed properties
This commit is contained in:
parent
b25d46291a
commit
e203210ade
@ -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";
|
||||
|
||||
|
||||
@ -34,8 +34,6 @@ public class Table implements SemanticNode {
|
||||
|
||||
int numberOfRows;
|
||||
int numberOfCols;
|
||||
int firstpage;
|
||||
int emptyCells;
|
||||
TextBlock textBlock;
|
||||
|
||||
@Builder.Default
|
||||
|
||||
@ -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)));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user