C# Класс Summer.Batch.Infrastructure.Item.File.Transform.DefaultFieldSet

Default implementation of IFieldSet.
Наследование: IFieldSet
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
IndexOf ( string name ) : int
ReadAndTrim ( int index ) : string

Описание методов

DefaultFieldSet() публичный Метод

Creates a DefaultFieldSet with the specified values.
public DefaultFieldSet ( string values ) : System
values string an array containing the values of the fields
Результат System

DefaultFieldSet() публичный Метод

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
Результат System

ReadBoolean() публичный Метод

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")
Результат bool

ReadBoolean() публичный Метод

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")
Результат bool

ReadByte() публичный Метод

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
Результат byte

ReadByte() публичный Метод

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
Результат byte

ReadChar() публичный Метод

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
Результат char

ReadChar() публичный Метод

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
Результат char

ReadDate() публичный Метод

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
Результат System.DateTime

ReadDate() публичный Метод

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
Результат System.DateTime

ReadDate() публичный Метод

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
Результат System.DateTime

ReadDate() публичный Метод

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
Результат System.DateTime

ReadDate() публичный Метод

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
Результат System.DateTime

ReadDate() публичный Метод

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
Результат System.DateTime

ReadDate() публичный Метод

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
Результат System.DateTime

ReadDate() публичный Метод

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
Результат System.DateTime

ReadDecimal() публичный Метод

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
Результат decimal

ReadDecimal() публичный Метод

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
Результат decimal

ReadDecimal() публичный Метод

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
Результат decimal

ReadDecimal() публичный Метод

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
Результат decimal

ReadDouble() публичный Метод

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
Результат double

ReadDouble() публичный Метод

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
Результат double

ReadFloat() публичный Метод

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
Результат float

ReadFloat() публичный Метод

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
Результат float

ReadInt() публичный Метод

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
Результат int

ReadInt() публичный Метод

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
Результат int

ReadInt() публичный Метод

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
Результат int

ReadInt() публичный Метод

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
Результат int

ReadLong() публичный Метод

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
Результат long

ReadLong() публичный Метод

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
Результат long

ReadLong() публичный Метод

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
Результат long

ReadLong() публичный Метод

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
Результат long

ReadRawString() публичный Метод

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
Результат string

ReadRawString() публичный Метод

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
Результат string

ReadShort() публичный Метод

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
Результат short

ReadShort() публичный Метод

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
Результат short

ReadString() публичный Метод

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
Результат string

ReadString() публичный Метод

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
Результат string