Summer.Batch.Infrastructure.Item.File.Transform.ExtractorLineAggregator< T > Class Template Referenceabstract

Abstract implementation of T:ILineAggregator that uses a T:IFieldExtractor to convert the incoming object to an array of its parts. More...

Inheritance diagram for Summer.Batch.Infrastructure.Item.File.Transform.ExtractorLineAggregator< T >:
Summer.Batch.Infrastructure.Item.File.Transform.ILineAggregator< T > Summer.Batch.Infrastructure.Item.File.Transform.DelimitedLineAggregator< T > Summer.Batch.Infrastructure.Item.File.Transform.FormatterLineAggregator< T >

Public Member Functions

string Aggregate (T item)
 Transforms an item into a line. More...
 
- Public Member Functions inherited from Summer.Batch.Infrastructure.Item.File.Transform.ILineAggregator< T >
string Aggregate (T item)
 Transforms an item into a line. More...
 

Protected Member Functions

 ExtractorLineAggregator ()
 Protected default constructor that defines PassThroughFieldExtractor as the default field extractor. More...
 
abstract string DoAggregate (object[] fields)
 Aggregates the extracted fields to a string. More...
 

Properties

IFieldExtractor< T > FieldExtractor [get, set]
 The field extractor for the elements that are aggregated More...
 

Detailed Description

Abstract implementation of T:ILineAggregator that uses a T:IFieldExtractor to convert the incoming object to an array of its parts.

Template Parameters
T 
Type Constraints
T :class 

Constructor & Destructor Documentation

Protected default constructor that defines PassThroughFieldExtractor as the default field extractor.

Member Function Documentation

Transforms an item into a line.

Parameters
itemthe item to transform
Returns
the line corresponding to the given item
abstract string Summer.Batch.Infrastructure.Item.File.Transform.ExtractorLineAggregator< T >.DoAggregate ( object[]  fields)
protectedpure virtual

Aggregates the extracted fields to a string.

Parameters
fieldsthe extracted fields
Returns
the aggregated line

Implemented in Summer.Batch.Infrastructure.Item.File.Transform.FormatterLineAggregator< T >, and Summer.Batch.Infrastructure.Item.File.Transform.DelimitedLineAggregator< T >.

Property Documentation

The field extractor for the elements that are aggregated


The documentation for this class was generated from the following file:
  • Summer.Batch.Infrastructure/Item/File/Transform/ExtractorLineAggregator.cs