Summer.Batch.Extra.Ebcdic.AbstractEbcdicReaderMapper< T > Class Template Referenceabstract

Abstract super type for implementation of IEbcdicReaderMapper. It holds information and code required by most mappers, like date parser. More...

Inheritance diagram for Summer.Batch.Extra.Ebcdic.AbstractEbcdicReaderMapper< T >:
Summer.Batch.Extra.Ebcdic.AbstractEbcdicMapper Summer.Batch.Common.Factory.IInitializationPostOperations Summer.Batch.Extra.Ebcdic.IEbcdicReaderMapper< T >

Public Member Functions

void AfterPropertiesSet ()
 See IInitializationPostOperations.AfterPropertiesSet. More...
 
abstract T Map (IList< object > values, int itemCount)
 Converts the content of a list of values into a business object. To be implemented by sub-classes. More...
 
- Public Member Functions inherited from Summer.Batch.Extra.Ebcdic.IEbcdicReaderMapper< T >
TT Map (IList< object > values, int itemCount)
 Converts the content of a list of values into a business object. More...
 

Protected Member Functions

DateTime ParseDate (object encodedDate)
 Parses a date encoded in a String or a decimal, using the date parser. More...
 
virtual bool ParseBoolean (object value)
 Parse object as boolean More...
 
IList< TSub > SubMap< TSub > (IList< object > values, int itemCount, IEbcdicReaderMapper< TSub > mapper)
 Maps a list of lists to a list of business object using the given mapper. This method is used for field groups that have multiple occurrences. More...
 
- Protected Member Functions inherited from Summer.Batch.Extra.Ebcdic.AbstractEbcdicMapper
 AbstractEbcdicMapper ()
 protected constructor More...
 

Properties

IDateParser DateParser [get, set]
 Date parser property. More...
 
RecordFormatMap RecordFormatMap [set]
 RecordFormatMap property. More...
 
virtual string DistinguishedPattern [get]
 DistinguishedPattern property. Returns null by default. Sub-classes should redefine this as needed. More...
 
virtual IList< IEbcdicReaderMapper< object > > SubMappers [get]
 Retrieves the submappers. Used to set the date parser and the format map in cascade. More...
 
- Properties inherited from Summer.Batch.Extra.Ebcdic.IEbcdicReaderMapper< T >
RecordFormatMap RecordFormatMap [set]
 Sets the record format map to use for mapping More...
 
IDateParser DateParser [set]
 Sets the date parser More...
 
string DistinguishedPattern [get]
 The getter for the distinguished pattern. More...
 

Additional Inherited Members

- Static Protected Member Functions inherited from Summer.Batch.Extra.Ebcdic.AbstractEbcdicMapper
static string ToCamelCase (string name)
 Converts a cobol name to a camel case name. More...
 

Detailed Description

Abstract super type for implementation of IEbcdicReaderMapper. It holds information and code required by most mappers, like date parser.

Template Parameters
T the mapped class

Member Function Documentation

void Summer.Batch.Extra.Ebcdic.AbstractEbcdicReaderMapper< T >.AfterPropertiesSet ( )

See IInitializationPostOperations.AfterPropertiesSet.

Implements Summer.Batch.Common.Factory.IInitializationPostOperations.

abstract T Summer.Batch.Extra.Ebcdic.AbstractEbcdicReaderMapper< T >.Map ( IList< object >  values,
int  itemCount 
)
pure virtual

Converts the content of a list of values into a business object. To be implemented by sub-classes.

Parameters
values
itemCount
Returns
virtual bool Summer.Batch.Extra.Ebcdic.AbstractEbcdicReaderMapper< T >.ParseBoolean ( object  value)
protectedvirtual

Parse object as boolean

Parameters
value
Returns
DateTime Summer.Batch.Extra.Ebcdic.AbstractEbcdicReaderMapper< T >.ParseDate ( object  encodedDate)
protected

Parses a date encoded in a String or a decimal, using the date parser.

Parameters
encodedDatethe encoded date
Returns
the corresponding date
IList<TSub> Summer.Batch.Extra.Ebcdic.AbstractEbcdicReaderMapper< T >.SubMap< TSub > ( IList< object >  values,
int  itemCount,
IEbcdicReaderMapper< TSub >  mapper 
)
protected

Maps a list of lists to a list of business object using the given mapper. This method is used for field groups that have multiple occurrences.

Parameters
valuesthe list of list to map
itemCountthe record number
mapperthe mapper to use for mapping the sub lists
Returns
a list of business objects created using the mapper
Template Parameters
TSub 

Property Documentation

virtual string Summer.Batch.Extra.Ebcdic.AbstractEbcdicReaderMapper< T >.DistinguishedPattern
get

DistinguishedPattern property. Returns null by default. Sub-classes should redefine this as needed.

virtual IList<IEbcdicReaderMapper<object> > Summer.Batch.Extra.Ebcdic.AbstractEbcdicReaderMapper< T >.SubMappers
getprotected

Retrieves the submappers. Used to set the date parser and the format map in cascade.


The documentation for this class was generated from the following file:
  • Summer.Batch.Extra/Ebcdic/AbstractEbcdicReaderMapper.cs