public class ExcelSheetDataModelSource extends Object implements DataModelSource
DataModelSource from Excel Sheet.| Constructor and Description |
|---|
ExcelSheetDataModelSource(DataModelDefinition<?> definition,
URI id,
org.apache.poi.ss.usermodel.Sheet sheet)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
DataModelReflection |
next()
Returns the next model object (in a generic reflection form).
|
public ExcelSheetDataModelSource(DataModelDefinition<?> definition, URI id, org.apache.poi.ss.usermodel.Sheet sheet) throws IOException
definition - the model definitionid - sheet ID (nullable)sheet - target cheetIOException - if failed to extract property info from the sheetIllegalArgumentException - if some parameters were nullpublic DataModelReflection next() throws IOException
DataModelSourcenext in interface DataModelSourcenull if no such objects existIOException - if failed to obtain model objectspublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.