C# Класс SIL.FieldWorks.FixData.FwDataFixer

Fix errors in a FieldWorks data XML file.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
FixErrorsAndSave ( ) : void

Fix any errors you can, and write the results out. If successful, the input file is renamed with a ".bak" extension, the output file is renamed to the original input filename, and a log file with a ".fixes" extension is written.

FwDataFixer ( string filename, IProgress progress, ErrorLogger logger, ErrorCounter counter ) : System

Constructor. Reads the file and stores any data needed for corrections later on.

Приватные методы

Метод Описание
FixDuplicateWritingSystems ( System.Xml.Linq.XElement rt, System.Guid guid, string eltName, ErrorLogger errorLogger ) : void

Fix any cases where a multistring has duplicate writing systems.

FixGenericDate ( string fieldName, System.Xml.Linq.XElement rt, string className, System.Guid guid, ErrorLogger errorLogger ) : void
InitializeFixers ( string filename ) : void
StoreGuidInfoAndOwnership ( System.Xml.Linq.XElement rt, ErrorLogger errorLogger ) : void

Описание методов

FixErrorsAndSave() публичный Метод

Fix any errors you can, and write the results out. If successful, the input file is renamed with a ".bak" extension, the output file is renamed to the original input filename, and a log file with a ".fixes" extension is written.
public FixErrorsAndSave ( ) : void
Результат void

FwDataFixer() публичный Метод

Constructor. Reads the file and stores any data needed for corrections later on.
public FwDataFixer ( string filename, IProgress progress, ErrorLogger logger, ErrorCounter counter ) : System
filename string
progress IProgress
logger ErrorLogger
counter ErrorCounter
Результат System