C# 클래스 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.
상속: IDataReader
파일 보기 프로젝트 열기: BEXIS2/Core

보호된 프로퍼티들

프로퍼티 타입 설명
DataStructureVariableIndentifiers List
DataTuples List
DatasetId long
DatasetManager BExIS.Dlm.Services.Data.DatasetManager
SubmitedVariableIdentifiers List
ValueValidationManagerDic ValueValidationManager>.Dictionary
VariableIdentifierRows List>

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
GetValuesFromRow ( List row, int indexOfRow, List identifiers ) : List

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

비공개 메소드들

메소드 설명
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

메소드 상세

DataReader() 공개 메소드

public DataReader ( ) : System
리턴 System

FileExist() 공개 정적인 메소드

public static FileExist ( string path ) : bool
path string
리턴 bool

GetValuesFromRow() 보호된 메소드

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
리턴 List

Open() 공개 메소드

If FileStream exist open a FileStream
public Open ( string fileName ) : FileStream
fileName string
리턴 System.IO.FileStream

ReadRow() 공개 메소드

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
리턴 BExIS.Dlm.Entities.Data.DataTuple

ValidateComparisonWithDatatsructure() 공개 메소드

Compare Datastructure with Submited Variables And create a Dictionary of ValueValidationmanagers
public ValidateComparisonWithDatatsructure ( List variableIdentifers ) : List
variableIdentifers List
리턴 List

ValidateRow() 공개 메소드

Validate a row
public ValidateRow ( List row, int indexOfRow ) : List
row List List of strings
indexOfRow int Index of row
리턴 List

프로퍼티 상세

DataStructureVariableIndentifiers 보호되어 있는 프로퍼티

VariableIndentifiers from DataStructure
protected List DataStructureVariableIndentifiers
리턴 List

DataTuples 보호되어 있는 프로퍼티

protected List DataTuples
리턴 List

DatasetId 보호되어 있는 프로퍼티

protected long DatasetId
리턴 long

DatasetManager 보호되어 있는 프로퍼티

protected DatasetManager,BExIS.Dlm.Services.Data DatasetManager
리턴 BExIS.Dlm.Services.Data.DatasetManager

SubmitedVariableIdentifiers 보호되어 있는 프로퍼티

VariableIndentifiers from FileStream
protected List SubmitedVariableIdentifiers
리턴 List

ValueValidationManagerDic 보호되어 있는 프로퍼티

Dictionary with variable id as key and and a ValueValidationManager for each variable
protected Dictionary ValueValidationManagerDic
리턴 ValueValidationManager>.Dictionary

VariableIdentifierRows 보호되어 있는 프로퍼티

protected List> VariableIdentifierRows
리턴 List>