*renamed page to firstPage in DocumentStructure and Table
This commit is contained in:
parent
01493dc033
commit
f69331e7d8
@ -29,7 +29,7 @@ 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 PAGE ="page";
|
||||
public static final String FIRST_PAGE ="firstPage";
|
||||
public static final String NUMBER_OF_ROWS = "numberOfRows";
|
||||
public static final String NUMBER_OF_COLS = "numberOfCols";
|
||||
|
||||
|
||||
@ -34,7 +34,7 @@ public class Table implements SemanticNode {
|
||||
|
||||
int numberOfRows;
|
||||
int numberOfCols;
|
||||
int page;
|
||||
int firstpage;
|
||||
TextBlock textBlock;
|
||||
|
||||
@Builder.Default
|
||||
|
||||
@ -47,7 +47,7 @@ public class PropertiesMapper {
|
||||
|
||||
Map<String, String> properties = new HashMap<>();
|
||||
Page page = table.getFirstPage();
|
||||
properties.put(DocumentStructure.TableProperties.PAGE, String.valueOf(page.getNumber()));
|
||||
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 +73,7 @@ public class PropertiesMapper {
|
||||
|
||||
public static void parseTableProperties(Map<String, String> properties, Table.TableBuilder builder) {
|
||||
|
||||
builder.page(Integer.parseInt(properties.get(DocumentStructure.TableProperties.PAGE)));
|
||||
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