C# Class Summer.Batch.Infrastructure.Item.File.Transform.DefaultFieldSet

Default implementation of IFieldSet.
Inheritance: IFieldSet
Show file Open project: SummerBatch/SummerBatch Class Usage Examples

Public Methods

Method Description
DefaultFieldSet ( string values ) : System

Creates a DefaultFieldSet with the specified values.

DefaultFieldSet ( string names, string values ) : System

Creates a DefaultFieldSet with the specified names and values.

ReadBoolean ( int index, string trueValue = "true" ) : bool

Reads a field as a boolean.

ReadBoolean ( string name, string trueValue = "true" ) : bool

Reads a field as a boolean.

ReadByte ( int index ) : byte

Reads a field as a byte.

ReadByte ( string name ) : byte

Reads a field as a byte.

ReadChar ( int index ) : char

Reads a field as a character.

ReadChar ( string name ) : char

Reads a field as a character.

ReadDate ( int index ) : System.DateTime

Reads a field as a date.

ReadDate ( int index, System.DateTime defaultValue ) : System.DateTime

Reads a field as a date.

ReadDate ( int index, string pattern ) : System.DateTime

Reads a field as a date.

ReadDate ( int index, string pattern, System.DateTime defaultValue ) : System.DateTime

Reads a field as a date, using defaultValue if needed.

ReadDate ( string name ) : System.DateTime

Reads a field as a date.

ReadDate ( string name, System.DateTime defaultValue ) : System.DateTime

Reads a field as a date.

ReadDate ( string name, string pattern ) : System.DateTime

Reads a field as a date.

ReadDate ( string name, string pattern, System.DateTime defaultValue ) : System.DateTime

Reads a field as a date.

ReadDecimal ( int index ) : decimal

Reads a field as a decimal.

ReadDecimal ( int index, decimal defaultValue ) : decimal

Reads a field as a decimal.

ReadDecimal ( string name ) : decimal

Reads a field as a decimal.

ReadDecimal ( string name, decimal defaultValue ) : decimal

Reads a field as a decimal.

ReadDouble ( int index ) : double

Reads a field as a double.

ReadDouble ( string name ) : double

Reads a field as a double.

ReadFloat ( int index ) : float

Reads a field as a float.

ReadFloat ( string name ) : float

Reads a field as a float.

ReadInt ( int index ) : int

Reads a field as an int.

ReadInt ( int index, int defaultValue ) : int

Reads a field as an int.

ReadInt ( string name ) : int

Reads a field as an int.

ReadInt ( string name, int defaultValue ) : int

Reads a field as an int.

ReadLong ( int index ) : long

Reads a field as a long.

ReadLong ( int index, long defaultValue ) : long

Reads a field as a long.

ReadLong ( string name ) : long

Reads a field as a long.

ReadLong ( string name, long defaultValue ) : long

Reads a field as a long.

ReadRawString ( int index ) : string

Reads a field as a string.

ReadRawString ( string name ) : string

Reads a field as a string.

ReadShort ( int index ) : short

Reads a field as a short.

ReadShort ( string name ) : short

Reads a field as a short.

ReadString ( int index ) : string

Reads a field as a string.

ReadString ( string name ) : string

Reads a field as a string.

Private Methods

Method Description
IndexOf ( string name ) : int
ReadAndTrim ( int index ) : string

Method Details

DefaultFieldSet() public method

Creates a DefaultFieldSet with the specified values.
public DefaultFieldSet ( string values ) : System
values string an array containing the values of the fields
return System

DefaultFieldSet() public method

Creates a DefaultFieldSet with the specified names and values.
 if names and values do not have the same length
public DefaultFieldSet ( string names, string values ) : System
names string an array containing the names of the fields
values string an array containing the values of the fields
return System

ReadBoolean() public method

Reads a field as a boolean.
 if the index does not correspond to a field
public ReadBoolean ( int index, string trueValue = "true" ) : bool
index int the index of the field to read
trueValue string the literal corresponding to true (default is "true")
return bool

ReadBoolean() public method

Reads a field as a boolean.
 if no field has the given name
public ReadBoolean ( string name, string trueValue = "true" ) : bool
name string the name of the field to read
trueValue string the literal corresponding to true (default is "true")
return bool

ReadByte() public method

Reads a field as a byte.
 if the index does not correspond to a field
public ReadByte ( int index ) : byte
index int the index of the field to read
return byte

ReadByte() public method

Reads a field as a byte.
 if no field has the given name
public ReadByte ( string name ) : byte
name string the name of the field to read
return byte

ReadChar() public method

Reads a field as a character.
 if the index does not correspond to a field
public ReadChar ( int index ) : char
index int the index of the field to read
return char

ReadChar() public method

Reads a field as a character.
 if no field has the given name
public ReadChar ( string name ) : char
name string the name of the field to read
return char

ReadDate() public method

Reads a field as a date.
 if the index does not correspond to a field
public ReadDate ( int index ) : System.DateTime
index int the index of the field to read
return System.DateTime

ReadDate() public method

Reads a field as a date.
 if the index does not correspond to a field
public ReadDate ( int index, System.DateTime defaultValue ) : System.DateTime
index int the index of the field to read
defaultValue System.DateTime the default value if the field is blank
return System.DateTime

ReadDate() public method

Reads a field as a date.
 if the index does not correspond to a field
public ReadDate ( int index, string pattern ) : System.DateTime
index int the index of the field to read
pattern string the pattern to use to parse the date
return System.DateTime

ReadDate() public method

Reads a field as a date, using defaultValue if needed.
public ReadDate ( int index, string pattern, System.DateTime defaultValue ) : System.DateTime
index int
pattern string
defaultValue System.DateTime
return System.DateTime

ReadDate() public method

Reads a field as a date.
 if no field has the given name
public ReadDate ( string name ) : System.DateTime
name string the name of the field to read
return System.DateTime

ReadDate() public method

Reads a field as a date.
 if no field has the given name
public ReadDate ( string name, System.DateTime defaultValue ) : System.DateTime
name string the name of the field to read
defaultValue System.DateTime the default value if the field is blank
return System.DateTime

ReadDate() public method

Reads a field as a date.
 if no field has the given name
public ReadDate ( string name, string pattern ) : System.DateTime
name string the name of the field to read
pattern string the pattern to use to parse the date
return System.DateTime

ReadDate() public method

Reads a field as a date.
 if no field has the given name
public ReadDate ( string name, string pattern, System.DateTime defaultValue ) : System.DateTime
name string the name of the field to read
pattern string the pattern to use to parse the date
defaultValue System.DateTime the default value if the field is blank
return System.DateTime

ReadDecimal() public method

Reads a field as a decimal.
 if the index does not correspond to a field
public ReadDecimal ( int index ) : decimal
index int the index of the field to read
return decimal

ReadDecimal() public method

Reads a field as a decimal.
 if the index does not correspond to a field
public ReadDecimal ( int index, decimal defaultValue ) : decimal
index int the index of the field to read
defaultValue decimal the default value if the field is blank
return decimal

ReadDecimal() public method

Reads a field as a decimal.
 if no field has the given name
public ReadDecimal ( string name ) : decimal
name string the name of the field to read
return decimal

ReadDecimal() public method

Reads a field as a decimal.
 if no field has the given name
public ReadDecimal ( string name, decimal defaultValue ) : decimal
name string the name of the field to read
defaultValue decimal the default value if the field is blank
return decimal

ReadDouble() public method

Reads a field as a double.
 if the index does not correspond to a field
public ReadDouble ( int index ) : double
index int the index of the field to read
return double

ReadDouble() public method

Reads a field as a double.
 if no field has the given name
public ReadDouble ( string name ) : double
name string the name of the field to read
return double

ReadFloat() public method

Reads a field as a float.
 if the index does not correspond to a field
public ReadFloat ( int index ) : float
index int the index of the field to read
return float

ReadFloat() public method

Reads a field as a float.
 if no field has the given name
public ReadFloat ( string name ) : float
name string the name of the field to read
return float

ReadInt() public method

Reads a field as an int.
 if the index does not correspond to a field
public ReadInt ( int index ) : int
index int the index of the field to read
return int

ReadInt() public method

Reads a field as an int.
 if the index does not correspond to a field
public ReadInt ( int index, int defaultValue ) : int
index int the index of the field to read
defaultValue int the default value if the field is blank
return int

ReadInt() public method

Reads a field as an int.
 if no field has the given name
public ReadInt ( string name ) : int
name string the name of the field to read
return int

ReadInt() public method

Reads a field as an int.
 if no field has the given name
public ReadInt ( string name, int defaultValue ) : int
name string the name of the field to read
defaultValue int the default value if the field is blank
return int

ReadLong() public method

Reads a field as a long.
 if the index does not correspond to a field
public ReadLong ( int index ) : long
index int the index of the field to read
return long

ReadLong() public method

Reads a field as a long.
 if the index does not correspond to a field
public ReadLong ( int index, long defaultValue ) : long
index int the index of the field to read
defaultValue long the default value if the field is blank
return long

ReadLong() public method

Reads a field as a long.
 if no field has the given name
public ReadLong ( string name ) : long
name string the name of the field to read
return long

ReadLong() public method

Reads a field as a long.
 if no field has the given name
public ReadLong ( string name, long defaultValue ) : long
name string the name of the field to read
defaultValue long the default value if the field is blank
return long

ReadRawString() public method

Reads a field as a string.
 if the index does not correspond to a field
public ReadRawString ( int index ) : string
index int the index of the field to read
return string

ReadRawString() public method

Reads a field as a string.
 if no field has the given name
public ReadRawString ( string name ) : string
name string the name of the field to read
return string

ReadShort() public method

Reads a field as a short.
 if the index does not correspond to a field
public ReadShort ( int index ) : short
index int the index of the field to read
return short

ReadShort() public method

Reads a field as a short.
 if no field has the given name
public ReadShort ( string name ) : short
name string the name of the field to read
return short

ReadString() public method

Reads a field as a string.
 if the index does not correspond to a field
public ReadString ( int index ) : string
index int the index of the field to read
return string

ReadString() public method

Reads a field as a string.
 if no field has the given name
public ReadString ( string name ) : string
name string the name of the field to read
return string