public abstract static class AbstractXlsxSolutionFileIO.AbstractXlsxReader<Solution_> extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
currentColumnNumber |
protected org.apache.poi.xssf.usermodel.XSSFRow |
currentRow |
protected Iterator<org.apache.poi.ss.usermodel.Row> |
currentRowIterator |
protected int |
currentRowNumber |
protected org.apache.poi.xssf.usermodel.XSSFSheet |
currentSheet |
protected org.optaplanner.core.impl.score.definition.ScoreDefinition |
scoreDefinition |
protected Solution_ |
solution |
protected org.apache.poi.xssf.usermodel.XSSFWorkbook |
workbook |
Constructor and Description |
---|
AbstractXlsxReader(org.apache.poi.xssf.usermodel.XSSFWorkbook workbook,
String solverConfigResource) |
Modifier and Type | Method and Description |
---|---|
protected String |
currentPosition() |
protected boolean |
currentRowIsEmpty() |
protected org.apache.poi.xssf.usermodel.XSSFColor |
extractColor(org.apache.poi.xssf.usermodel.XSSFCell cell,
org.apache.poi.xssf.usermodel.XSSFColor... acceptableColors) |
protected boolean |
hasSheet(String sheetName) |
protected org.apache.poi.xssf.usermodel.XSSFCell |
nextBooleanCell() |
protected org.apache.poi.xssf.usermodel.XSSFCell |
nextCell() |
protected org.apache.poi.xssf.usermodel.XSSFCell |
nextNumericCell() |
protected org.apache.poi.xssf.usermodel.XSSFCell |
nextNumericCellOrBlank() |
protected boolean |
nextRow() |
protected boolean |
nextRow(boolean skipEmptyRows) |
protected void |
nextSheet(String sheetName) |
protected org.apache.poi.xssf.usermodel.XSSFCell |
nextStringCell() |
abstract Solution_ |
read() |
protected void |
readHeaderCell(double value) |
protected void |
readHeaderCell(String value) |
protected void |
readIntConstraintParameterLine(String name,
Consumer<Integer> consumer,
String constraintDescription) |
protected void |
readLongConstraintParameterLine(String name,
Consumer<Long> consumer,
String constraintDescription) |
protected void |
readScoreConstraintHeaders() |
protected <Score_ extends org.optaplanner.core.api.score.Score<Score_>> |
readScoreConstraintLine(String constraintName,
String constraintDescription) |
protected final org.apache.poi.xssf.usermodel.XSSFWorkbook workbook
protected final org.optaplanner.core.impl.score.definition.ScoreDefinition scoreDefinition
protected Solution_ solution
protected org.apache.poi.xssf.usermodel.XSSFSheet currentSheet
protected Iterator<org.apache.poi.ss.usermodel.Row> currentRowIterator
protected org.apache.poi.xssf.usermodel.XSSFRow currentRow
protected int currentRowNumber
protected int currentColumnNumber
public AbstractXlsxReader(org.apache.poi.xssf.usermodel.XSSFWorkbook workbook, String solverConfigResource)
public abstract Solution_ read()
protected void readIntConstraintParameterLine(String name, Consumer<Integer> consumer, String constraintDescription)
protected void readLongConstraintParameterLine(String name, Consumer<Long> consumer, String constraintDescription)
protected void readScoreConstraintHeaders()
protected <Score_ extends org.optaplanner.core.api.score.Score<Score_>> Score_ readScoreConstraintLine(String constraintName, String constraintDescription)
protected String currentPosition()
protected boolean hasSheet(String sheetName)
protected void nextSheet(String sheetName)
protected boolean nextRow()
protected boolean nextRow(boolean skipEmptyRows)
protected boolean currentRowIsEmpty()
protected void readHeaderCell(String value)
protected void readHeaderCell(double value)
protected org.apache.poi.xssf.usermodel.XSSFCell nextStringCell()
protected org.apache.poi.xssf.usermodel.XSSFCell nextNumericCell()
protected org.apache.poi.xssf.usermodel.XSSFCell nextNumericCellOrBlank()
protected org.apache.poi.xssf.usermodel.XSSFCell nextBooleanCell()
protected org.apache.poi.xssf.usermodel.XSSFCell nextCell()
protected org.apache.poi.xssf.usermodel.XSSFColor extractColor(org.apache.poi.xssf.usermodel.XSSFCell cell, org.apache.poi.xssf.usermodel.XSSFColor... acceptableColors)
Copyright © 2006–2020 JBoss by Red Hat. All rights reserved.