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 null
public DataModelReflection next() throws IOException
DataModelSource
next
in interface DataModelSource
null
if no such objects existIOException
- if failed to obtain model objectspublic void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.