C# Class SIL.FieldWorks.FixData.FwDataFixer

Fix errors in a FieldWorks data XML file.
Afficher le fichier Open project: sillsdev/FieldWorks Class Usage Examples

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
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

Method Details

FixErrorsAndSave() public méthode

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
Résultat void

FwDataFixer() public méthode

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
Résultat System