Method | Description | |
---|---|---|
MorphBundleFixer ( |
Method | Description | |
---|---|---|
ChildSurrogateGuid ( System.Xml.Linq.XElement parent, string childName ) : string |
If parent has a child with the specified name, which has an objsur child with a guid attribute, return the value of that attribute. Otherwise, null.
|
|
FixElement ( System.Xml.Linq.XElement rt, |
This is the main routine that does actual repair on morph bundles.
|
|
FixMorph ( System.Xml.Linq.XElement rt, |
Deal with problems of the Morph child, if any.
|
|
FixMsa ( System.Xml.Linq.XElement rt, |
Make any required fixes to the MSA child element.
|
|
GetSoleForm ( System.Xml.Linq.XElement entryElt ) : string |
Get the Lexeme Form guid, if one is present and there are no alternate forms; otherwise, return null. Enhance JohnT: arguably we could return a single AlternateForm if there is no LF, but this is pathological and unlikely to be useful.
|
|
GetSoleMsaGuid ( System.Xml.Linq.XElement rt ) : string |
Get the guid of the one and only msa of rt (which is an Entry) (or return null if it does not have exactly one MSA that will survive fixup)
|
|
InspectElement ( System.Xml.Linq.XElement rt ) : void |
First pass: gather information: remember all the lex entries, and the senses which have msas. Enhance JohnT: should we do something to verify that the msa refs in the senses are not also dangling?
|
|
Reset ( ) : void | ||
SurrogateGuid ( System.Xml.Linq.XElement parent ) : string |
public MorphBundleFixer ( |
||
senseFixer | ||
return | System |