|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BindyFactory
The bindy factory is a factory used to create the POJO models and bind or unbind the data to and from the record (CSV, ...)
Method Summary | |
---|---|
void |
bind(List<String> data,
Map<String,Object> model,
int line)
The bind allow to read the content of a record (expressed as a List |
void |
initModel()
Prior to bind or unbind the data to and from string or model classes, the factory must create a collection of objects representing the model |
String |
unbind(Map<String,Object> model)
The unbind is used to transform the content of the classes model objects into a string. |
Method Detail |
---|
void initModel() throws Exception
Exception
- can be thrownvoid bind(List<String> data, Map<String,Object> model, int line) throws Exception
data
- Listmodel
- Mapline
- is the position of the record into the file
Exception
- can be thrownString unbind(Map<String,Object> model) throws Exception
model
- MapException
- can be thrown
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |