Summer.Batch.Infrastructure.Item.File.Transform.FormatterLineAggregator< T > Class Template Reference

Implementation of T:ILineAggregator that produces a string by aggregating the provided item with string.Format(System.IFormatProvider,string,object[]). More...

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

Public Member Functions

 FormatterLineAggregator ()
 Default constructor. More...
 
- Public Member Functions inherited from Summer.Batch.Infrastructure.Item.File.Transform.ExtractorLineAggregator< T >
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

override string DoAggregate (object[] fields)
 Aggregates the extracted fields to a string. More...
 
- Protected Member Functions inherited from Summer.Batch.Infrastructure.Item.File.Transform.ExtractorLineAggregator< T >
 ExtractorLineAggregator ()
 Protected default constructor that defines PassThroughFieldExtractor as the default field extractor. More...
 

Properties

string Format [get, set]
 The string to use for formatting. More...
 
CultureInfo CultureInfo [get, set]
 The culture to use when formatting. Default is P:CultureInfo.CurrentCulture. More...
 
int MinimumLength [get, set]
 The minimum allowed length for the formatted string. Zero means that there are no minimum. More...
 
int MaximumLength [get, set]
 The maximum allowed length for the formatted string. Zero means that there are no maximum. More...
 
- Properties inherited from Summer.Batch.Infrastructure.Item.File.Transform.ExtractorLineAggregator< T >
IFieldExtractor< T > FieldExtractor [get, set]
 The field extractor for the elements that are aggregated More...
 

Detailed Description

Implementation of T:ILineAggregator that produces a string by aggregating the provided item with string.Format(System.IFormatProvider,string,object[]).

Type Constraints
T :class 

Constructor & Destructor Documentation

Member Function Documentation

override string Summer.Batch.Infrastructure.Item.File.Transform.FormatterLineAggregator< T >.DoAggregate ( object[]  fields)
protectedvirtual

Aggregates the extracted fields to a string.

Parameters
fieldsthe extracted fields
Returns
the aggregated line
Exceptions
System.InvalidOperationExceptionif the formatted string does not have the expected length

Implements Summer.Batch.Infrastructure.Item.File.Transform.ExtractorLineAggregator< T >.

Property Documentation

The culture to use when formatting. Default is P:CultureInfo.CurrentCulture.

The string to use for formatting.

The maximum allowed length for the formatted string. Zero means that there are no maximum.

The minimum allowed length for the formatted string. Zero means that there are no minimum.


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