C# Class SIL.FieldWorks.FixData.RtFixer

This abstract class provides the interface for fixing problems on an element\row\CmObject level. The members m_guids and m_owners can be used by fixes which need global information.
Mostrar archivo Open project: sillsdev/FieldWorks

Protected Properties

Property Type Description
m_guids HashSet
m_owners Guid>.Dictionary
m_parentToOwnedObjsur HashSet>.Dictionary
m_rtElementsToDelete HashSet

Private Methods

Method Description
FinalFixerInitialization ( Guid>.Dictionary owners, HashSet guids, Dictionary parentToOwnedObjsur, HashSet rtElementsToDelete ) : void
FixElement ( System.Xml.Linq.XElement rt, FwDataFixer logger ) : bool

Do any fixes to this particular root element here. Return true if we are done fixing this element and can write it out. Return false if we need to delete this root element.

InspectAdditionalFieldsElement ( System.Xml.Linq.XElement additionalFieldsElem ) : void

This method gives each fixer the opportunity to look at any custom fields the db might have.

InspectElement ( System.Xml.Linq.XElement rt ) : void

Override this method if a Fixer needs to gather information on one pass in FwDataFixer.ProcessDocument(). in order to fix everything on another pass (with FixElement). Try hard to limit your time in here to a small subset of the available rt elements!

MarkObjForDeletionAndDecendants ( string rtElementGuid ) : void
Reset ( ) : void

Reset this instance to its original state. Overrides should call the base method.

Property Details

m_guids protected_oe property

protected HashSet m_guids
return HashSet

m_owners protected_oe property

protected Dictionary m_owners
return Guid>.Dictionary

m_parentToOwnedObjsur protected_oe property

protected Dictionary> m_parentToOwnedObjsur
return HashSet>.Dictionary

m_rtElementsToDelete protected_oe property

protected HashSet m_rtElementsToDelete
return HashSet