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)
ExcelRuleExtractortrue iff this extractor supports the sheet.supports in interface ExcelRuleExtractorsheet - target sheettrue iff this extractor supports the sheet, or false otherwisepublic Set<DataModelCondition> extractDataModelCondition(org.apache.poi.ss.usermodel.Sheet sheet) throws ExcelRuleExtractor.FormatException
ExcelRuleExtractorextractDataModelCondition in interface ExcelRuleExtractorsheet - target sheetExcelRuleExtractor.FormatException - if the sheet format is invalidpublic int extractPropertyRowStartIndex(org.apache.poi.ss.usermodel.Sheet sheet)
throws ExcelRuleExtractor.FormatException
ExcelRuleExtractorextractPropertyRowStartIndex in interface ExcelRuleExtractorsheet - target sheetExcelRuleExtractor.FormatException - if the sheet format is invalidpublic String extractName(org.apache.poi.ss.usermodel.Row row) throws ExcelRuleExtractor.FormatException
ExcelRuleExtractorextractName in interface ExcelRuleExtractorrow - 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
ExcelRuleExtractorextractValueCondition in interface ExcelRuleExtractorrow - source rowExcelRuleExtractor.FormatException - if the sheet format is invalidpublic NullityConditionKind extractNullityCondition(org.apache.poi.ss.usermodel.Row row) throws ExcelRuleExtractor.FormatException
ExcelRuleExtractorextractNullityCondition in interface ExcelRuleExtractorrow - source rowExcelRuleExtractor.FormatException - if the sheet format is invalidpublic String extractComments(org.apache.poi.ss.usermodel.Row row) throws ExcelRuleExtractor.FormatException
ExcelRuleExtractorextractComments in interface ExcelRuleExtractorrow - source rowExcelRuleExtractor.FormatException - if the sheet format is invalidpublic String extractOptions(org.apache.poi.ss.usermodel.Row row) throws ExcelRuleExtractor.FormatException
ExcelRuleExtractorextractOptions in interface ExcelRuleExtractorrow - source rowExcelRuleExtractor.FormatException - if the sheet format is invalidCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.