C# Class SILUBS.ScriptureChecks.QuotationCheck

Inheritance: IScrCheckInventory
Mostrar archivo Open project: sillsdev/FieldWorks Class Usage Examples

Public Methods

Method Description
Check ( IEnumerable toks, RecordErrorHandler record ) : void

Checks the given tokens for quotation errors. Ignores any found in 'validItemsList'. Calls the given RecordError handler for each one.

GetReferences ( IEnumerable tokens, string desiredKey ) : List

Gets a list if TextTokenSubstrings containing the references and character offsets where quotation problems occur.

QuotationCheck ( IChecksDataSource checksDataSource ) : System
Save ( ) : void

Saves the parameters for this check.

Private Methods

Method Description
Localize ( string strToLocalize ) : string

Returns a localized version of the specified string.

Method Details

Check() public method

Checks the given tokens for quotation errors. Ignores any found in 'validItemsList'. Calls the given RecordError handler for each one.
public Check ( IEnumerable toks, RecordErrorHandler record ) : void
toks IEnumerable The tokens to check.
record RecordErrorHandler Method to call to record errors.
return void

GetReferences() public method

Gets a list if TextTokenSubstrings containing the references and character offsets where quotation problems occur.
public GetReferences ( IEnumerable tokens, string desiredKey ) : List
tokens IEnumerable The tokens (from the data source) to check for quotation problems.
desiredKey string empty string.
return List

QuotationCheck() public method

public QuotationCheck ( IChecksDataSource checksDataSource ) : System
checksDataSource IChecksDataSource
return System

Save() public method

Saves the parameters for this check.
public Save ( ) : void
return void