public class DefaultExcelRuleExtractor extends Object implements ExcelRuleExtractor
ExcelRuleExtractor
.ExcelRuleExtractor.FormatException
Modifier and Type | Field and Description |
---|---|
static Set<String> |
SUPPORTED_FORMATS
Format IDs which this extractor supports.
|
Constructor and Description |
---|
DefaultExcelRuleExtractor() |
Modifier and Type | Method and Description |
---|---|
String |
extractComments(org.apache.poi.ss.usermodel.Row row)
Extracts comments from the row.
|
Set<DataModelCondition> |
extractDataModelCondition(org.apache.poi.ss.usermodel.Sheet sheet)
Extract predicates about presence/absense of each data model objects.
|
String |
extractName(org.apache.poi.ss.usermodel.Row row)
Extract property name from the row.
|
NullityConditionKind |
extractNullityCondition(org.apache.poi.ss.usermodel.Row row)
Extract nullity predicate from the row.
|
String |
extractOptions(org.apache.poi.ss.usermodel.Row row)
Extracts extra options from the row.
|
int |
extractPropertyRowStartIndex(org.apache.poi.ss.usermodel.Sheet sheet)
Extract row index of describing conditions about each property.
|
ValueConditionKind |
extractValueCondition(org.apache.poi.ss.usermodel.Row row)
Extract value predicate from the row.
|
boolean |
supports(org.apache.poi.ss.usermodel.Sheet sheet)
Returns
true iff this extractor supports the sheet. |
public boolean supports(org.apache.poi.ss.usermodel.Sheet sheet)
ExcelRuleExtractor
true
iff this extractor supports the sheet.supports
in interface ExcelRuleExtractor
sheet
- target sheettrue
iff this extractor supports the sheet, or false
otherwisepublic Set<DataModelCondition> extractDataModelCondition(org.apache.poi.ss.usermodel.Sheet sheet) throws ExcelRuleExtractor.FormatException
ExcelRuleExtractor
extractDataModelCondition
in interface ExcelRuleExtractor
sheet
- target sheetExcelRuleExtractor.FormatException
- if the sheet format is invalidpublic int extractPropertyRowStartIndex(org.apache.poi.ss.usermodel.Sheet sheet) throws ExcelRuleExtractor.FormatException
ExcelRuleExtractor
extractPropertyRowStartIndex
in interface ExcelRuleExtractor
sheet
- target sheetExcelRuleExtractor.FormatException
- if the sheet format is invalidpublic String extractName(org.apache.poi.ss.usermodel.Row row) throws ExcelRuleExtractor.FormatException
ExcelRuleExtractor
extractName
in interface ExcelRuleExtractor
row
- source rownull
if target cell is blankExcelRuleExtractor.FormatException
- if the sheet format is invalidpublic ValueConditionKind extractValueCondition(org.apache.poi.ss.usermodel.Row row) throws ExcelRuleExtractor.FormatException
ExcelRuleExtractor
extractValueCondition
in interface ExcelRuleExtractor
row
- source rowExcelRuleExtractor.FormatException
- if the sheet format is invalidpublic NullityConditionKind extractNullityCondition(org.apache.poi.ss.usermodel.Row row) throws ExcelRuleExtractor.FormatException
ExcelRuleExtractor
extractNullityCondition
in interface ExcelRuleExtractor
row
- source rowExcelRuleExtractor.FormatException
- if the sheet format is invalidpublic String extractComments(org.apache.poi.ss.usermodel.Row row) throws ExcelRuleExtractor.FormatException
ExcelRuleExtractor
extractComments
in interface ExcelRuleExtractor
row
- source rowExcelRuleExtractor.FormatException
- if the sheet format is invalidpublic String extractOptions(org.apache.poi.ss.usermodel.Row row) throws ExcelRuleExtractor.FormatException
ExcelRuleExtractor
extractOptions
in interface ExcelRuleExtractor
row
- source rowExcelRuleExtractor.FormatException
- if the sheet format is invalidCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.