C# 클래스 SILUBS.ScriptureChecks.CharactersCheck

Checks all characters to see if they are valid
상속: IScrCheckInventory
파일 보기 프로젝트 열기: sillsdev/FieldWorks 1 사용 예제들

공개 메소드들

메소드 설명
CharactersCheck ( IChecksDataSource _checksDataSource ) : System

Initializes a new instance of the CharactersCheck class.

Check ( IEnumerable toks, RecordErrorHandler record ) : void

Runs the Characters Scripture checks.

GetReferences ( IEnumerable tokens, string desiredKey ) : List

Get (invalid) character references.

InventoryTokens ( int bookNum, TextInventory inventory, IEnumerable tokens ) : void

Creates an inventory of the tokens.

ParseCharacterSequences ( string text ) : IEnumerable

Parses a string into character sequences.

Save ( ) : void

Update the parameter values for storing the valid and invalid lists in CheckDataSource and then save them. This is here because the inventory form does not know the names of the parameters that need to be saved for a given check, only the check knows this.

비공개 메소드들

메소드 설명
GetParameters ( ) : void

Gets the parameters needed for this check.

GetReferences ( IEnumerable tokens, string desiredKey, bool invalidCharactersOnly ) : List

Get (invalid) character references.

GetValidCharacters ( string locale ) : string

Gets the valid characters list for the specified locale.

SetDefaultValidItems ( ) : void

Sets the list of default valid items.

StringToDictionary ( string value ) : bool>.Dictionary

Converts a string to a dictionary

메소드 상세

CharactersCheck() 공개 메소드

Initializes a new instance of the CharactersCheck class.
public CharactersCheck ( IChecksDataSource _checksDataSource ) : System
_checksDataSource IChecksDataSource
리턴 System

Check() 공개 메소드

Runs the Characters Scripture checks.
public Check ( IEnumerable toks, RecordErrorHandler record ) : void
toks IEnumerable The Scripture tokens to check.
record RecordErrorHandler Method to record the error.
리턴 void

GetReferences() 공개 메소드

Get (invalid) character references.
public GetReferences ( IEnumerable tokens, string desiredKey ) : List
tokens IEnumerable
desiredKey string
리턴 List

InventoryTokens() 공개 메소드

Creates an inventory of the tokens.
public InventoryTokens ( int bookNum, TextInventory inventory, IEnumerable tokens ) : void
bookNum int The book number.
inventory TextInventory The inventory.
tokens IEnumerable The tokens.
리턴 void

ParseCharacterSequences() 공개 메소드

Parses a string into character sequences.
public ParseCharacterSequences ( string text ) : IEnumerable
text string
리턴 IEnumerable

Save() 공개 메소드

Update the parameter values for storing the valid and invalid lists in CheckDataSource and then save them. This is here because the inventory form does not know the names of the parameters that need to be saved for a given check, only the check knows this.
public Save ( ) : void
리턴 void