C# Class FeliCa2Money.CsvRules

CSVルールセット
显示文件 Open project: tmurakam/felica2money Class Usage Examples

Public Methods

Method Description
Add ( CsvRule rule ) : void

ルール追加(単体テスト用)

CsvRules ( ) : System

コンストラクタ

FindRuleForFirstLine ( string firstLine ) : CsvRule

firstLine に一致するルールを探す

FindRuleWithIdent ( string ident ) : CsvRule

ident に一致するルールを探す

GetAt ( int idx ) : CsvRule

指定したインデックスのルールを返す

GetEnumerator ( ) : IEnumerator

イテレータ

IndexOf ( CsvRule rule ) : int

指定したルールのインデックスを返す

LoadAllRules ( ) : bool

全 CSV 変換ルールを読み出す

LoadFromFile ( string path ) : String

定義ファイルを1つ読み込む

LoadFromString ( string xmlString ) : String
getRulesPath ( ) : string

定義ファイルのディレクトリを返す UserAppDataPath からバージョン番号を除いたものが帰る

names ( ) : string[]

ルール名一覧を返す

Private Methods

Method Description
LoadFromXml ( XmlDocument doc ) : String

Method Details

Add() public method

ルール追加(単体テスト用)
public Add ( CsvRule rule ) : void
rule CsvRule ルール
return void

CsvRules() public method

コンストラクタ
public CsvRules ( ) : System
return System

FindRuleForFirstLine() public method

firstLine に一致するルールを探す
public FindRuleForFirstLine ( string firstLine ) : CsvRule
firstLine string firstLine
return CsvRule

FindRuleWithIdent() public method

ident に一致するルールを探す
public FindRuleWithIdent ( string ident ) : CsvRule
ident string
return CsvRule

GetAt() public method

指定したインデックスのルールを返す
public GetAt ( int idx ) : CsvRule
idx int インデックス
return CsvRule

GetEnumerator() public method

イテレータ
public GetEnumerator ( ) : IEnumerator
return IEnumerator

IndexOf() public method

指定したルールのインデックスを返す
public IndexOf ( CsvRule rule ) : int
rule CsvRule ルール
return int

LoadAllRules() public method

全 CSV 変換ルールを読み出す
public LoadAllRules ( ) : bool
return bool

LoadFromFile() public method

定義ファイルを1つ読み込む
public LoadFromFile ( string path ) : String
path string 定義ファイルパス
return String

LoadFromString() public method

public LoadFromString ( string xmlString ) : String
xmlString string
return String

getRulesPath() public static method

定義ファイルのディレクトリを返す UserAppDataPath からバージョン番号を除いたものが帰る
public static getRulesPath ( ) : string
return string

names() public method

ルール名一覧を返す
public names ( ) : string[]
return string[]