DEST - Destination class type.public interface ModelDefinition<DEST>
// Create model from factory
ModelDefinition definition = ModelDefinitionFactory.get().create(PersonDataExcel.class);
// Create source
InputStream excelStream = getClass().getResourceAsStream("/person-data.xlsx");
SourceExcel source = SourceFactory.get().create(excelStream);
// Fill the model using definition
definition.fill(source, new PersonDataExcel());
| Modifier and Type | Method and Description |
|---|---|
DEST |
fill(SourceExcel source,
DEST destination)
Fills destination class with given workbook data
|
DEST fill(SourceExcel source, DEST destination)
source - source of datadestination - destinationCopyright © 2018. All rights reserved.