C# Class BExIS.IO.Transform.Input.DataReader

DataReader is an abstract class that has functions for reading and validate the rows.
Convert list of strings to datatuple takes place here. Most of the functions work with a list of strings.
Inheritance: IDataReader
Afficher le fichier Open project: BEXIS2/Core

Protected Properties

Свойство Type Description
DataStructureVariableIndentifiers List
DataTuples List
DatasetId long
DatasetManager BExIS.Dlm.Services.Data.DatasetManager
SubmitedVariableIdentifiers List
ValueValidationManagerDic ValueValidationManager>.Dictionary
VariableIdentifierRows List>

Méthodes publiques

Méthode Description
DataReader ( ) : System

FileExist ( string path ) : bool

Open ( string fileName ) : FileStream

If FileStream exist open a FileStream

ReadRow ( List row, int indexOfRow ) : DataTuple

Read Row and convert each value into a variableValue and each row to a Datatuple

ValidateComparisonWithDatatsructure ( List variableIdentifers ) : List

Compare Datastructure with Submited Variables And create a Dictionary of ValueValidationmanagers

ValidateRow ( List row, int indexOfRow ) : List

Validate a row

Méthodes protégées

Méthode Description
GetValuesFromRow ( List row, int indexOfRow, List identifiers ) : List

Read Row an return only values in where the variable is in identifiers.

Private Methods

Méthode Description
createValueValidationManager ( string varName, string dataType, bool optional, DataAttribute variable ) : ValueValidationManager

Create ValueValidationManager of a Variable

getDatastructureAsListOfVariableIdentifers ( ICollection Variables ) : List

Get List of VariableIdentifers converted from Datastructure Variable

getDatastructureVariableIdentifiers ( ) : List

Get VairableIdentifiers from datastructure

getVariableUsage ( VariableIdentifier hv ) : Variable

Get VariableUsage based on VariableIdentifer

Method Details

DataReader() public méthode

public DataReader ( ) : System
Résultat System

FileExist() public static méthode

public static FileExist ( string path ) : bool
path string
Résultat bool

GetValuesFromRow() protected méthode

Read Row an return only values in where the variable is in identifiers.
protected GetValuesFromRow ( List row, int indexOfRow, List identifiers ) : List
row List List of values in one ro
indexOfRow int Currently row index
identifiers List list of variableids
Résultat List

Open() public méthode

If FileStream exist open a FileStream
public Open ( string fileName ) : FileStream
fileName string
Résultat System.IO.FileStream

ReadRow() public méthode

Read Row and convert each value into a variableValue and each row to a Datatuple
public ReadRow ( List row, int indexOfRow ) : DataTuple
row List List of values in one row
indexOfRow int Currently row index
Résultat BExIS.Dlm.Entities.Data.DataTuple

ValidateComparisonWithDatatsructure() public méthode

Compare Datastructure with Submited Variables And create a Dictionary of ValueValidationmanagers
public ValidateComparisonWithDatatsructure ( List variableIdentifers ) : List
variableIdentifers List
Résultat List

ValidateRow() public méthode

Validate a row
public ValidateRow ( List row, int indexOfRow ) : List
row List List of strings
indexOfRow int Index of row
Résultat List

Property Details

DataStructureVariableIndentifiers protected_oe property

VariableIndentifiers from DataStructure
protected List DataStructureVariableIndentifiers
Résultat List

DataTuples protected_oe property

protected List DataTuples
Résultat List

DatasetId protected_oe property

protected long DatasetId
Résultat long

DatasetManager protected_oe property

protected DatasetManager,BExIS.Dlm.Services.Data DatasetManager
Résultat BExIS.Dlm.Services.Data.DatasetManager

SubmitedVariableIdentifiers protected_oe property

VariableIndentifiers from FileStream
protected List SubmitedVariableIdentifiers
Résultat List

ValueValidationManagerDic protected_oe property

Dictionary with variable id as key and and a ValueValidationManager for each variable
protected Dictionary ValueValidationManagerDic
Résultat ValueValidationManager>.Dictionary

VariableIdentifierRows protected_oe property

protected List> VariableIdentifierRows
Résultat List>