-
Notifications
You must be signed in to change notification settings - Fork 7
4. Doing the actual mapping
Jos de Weger edited this page Jun 16, 2018
·
1 revision
The actual mapping is easy, tell your instance of the SheetMapper
to map a sheet to a Type
:
MappingResult result = sheetMapper.Map<SomeModel>(sheet);
The result will contain a list of:
- validation errors (if any)
- flags indicating success or failure
- a list of succesfully parsed model results (if any), which is just a wrapper around the parsed model holding the sheet row index for reference