Implementation of T:ILineAggregator that produces a string by aggregating the provided item with string.Format(System.IFormatProvider,string,object[]). More...
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
Summer.Batch.Infrastructure.Item.File.Transform.FormatterLineAggregator< T >.FormatterLineAggregator | ( | ) |
Default constructor.
Member Function Documentation
|
protectedvirtual |
Aggregates the extracted fields to a string.
- Parameters
-
fields the extracted fields
- Returns
- the aggregated line
- Exceptions
-
System.InvalidOperationException if the formatted string does not have the expected length
Implements Summer.Batch.Infrastructure.Item.File.Transform.ExtractorLineAggregator< T >.
Property Documentation
|
getset |
The culture to use when formatting. Default is P:CultureInfo.CurrentCulture.
|
getset |
The string to use for formatting.
|
getset |
The maximum allowed length for the formatted string. Zero means that there are no maximum.
|
getset |
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