Summer.Batch.Infrastructure.Item.File.Mapping.DefaultLineMapper< T > Class Template Reference
Implementation of T:ILineMapper that maps the line in two phases: first the line is separated in fields using a ILineTokenizer, then the resulting IFieldSet is mapped to an entity using a T:IFieldSetMapper. More...
Inheritance diagram for Summer.Batch.Infrastructure.Item.File.Mapping.DefaultLineMapper< T >:
Public Member Functions | |
T | MapLine (string line, int lineNumber) |
Takes a line and returns the corresponding item. More... | |
Public Member Functions inherited from Summer.Batch.Infrastructure.Item.File.ILineMapper< T > | |
T | MapLine (string line, int lineNumber) |
Takes a line and returns the corresponding item. More... | |
Properties | |
ILineTokenizer | Tokenizer [get, set] |
The tokenizer that creates a IFieldSet from the line. More... | |
IFieldSetMapper< T > | FieldSetMapper [get, set] |
The mapper that creates the entity from an IFieldSet. More... | |
Detailed Description
Implementation of T:ILineMapper that maps the line in two phases: first the line is separated in fields using a ILineTokenizer, then the resulting IFieldSet is mapped to an entity using a T:IFieldSetMapper.
- Template Parameters
-
T the type of the mapped entities
Member Function Documentation
T Summer.Batch.Infrastructure.Item.File.Mapping.DefaultLineMapper< T >.MapLine | ( | string | line, |
int | lineNumber | ||
) |
Takes a line and returns the corresponding item.
- Parameters
-
line the line to map lineNumber the number of the line
- Returns
- an item corresponding to the given line
Property Documentation
|
getset |
The mapper that creates the entity from an IFieldSet.
|
getset |
The tokenizer that creates a IFieldSet from the line.
The documentation for this class was generated from the following file:
- Summer.Batch.Infrastructure/Item/File/Mapping/DefaultLineMapper.cs