C# Class SIL.FieldWorks.FDO.DomainServices.M3ModelExportServices

Services that are common for M3 model export.
ファイルを表示 Open project: sillsdev/FieldWorks

Public Methods

Method Description
ExportGafaws ( IEnumerable partsOfSpeech ) : System.Xml.Linq.XDocument

Export everything needed by parsers for GAFAWS data.

ExportGrammarAndLexicon ( ILangProject languageProject ) : System.Xml.Linq.XDocument

Export the grammar and lexicon.

ExportGrammarSketch ( string outputPath, ILangProject languageProject ) : void

Exports data for the grammar sketch.

Private Methods

Method Description
CreateAttribute ( string attributeName, ICmObject target ) : System.Xml.Linq.XAttribute
CreateAttribute ( string attributeName, int value ) : System.Xml.Linq.XAttribute
CreateDstAttribute ( ICmObject target ) : System.Xml.Linq.XAttribute
CreateDstAttribute ( int value ) : System.Xml.Linq.XAttribute
ExportAdhocCoProhibition ( IMoAdhocProhib adhocProhib, Icu mode ) : System.Xml.Linq.XElement
ExportAdhocCoProhibitionGroup ( IMoAdhocProhibGr adhocProhibGr, Icu mode ) : System.Xml.Linq.XElement
ExportAdhocCoProhibitions ( IMoMorphData morphData, Icu mode ) : System.Xml.Linq.XElement
ExportAffixtemplate ( IMoInflAffixTemplate template, Icu mode ) : System.Xml.Linq.XElement
ExportAlloAdhocCoProhibition ( IMoAlloAdhocProhib alloAdhocProhib ) : System.Xml.Linq.XElement
ExportAllomorphs ( IServiceLocator servLoc, Icu mode ) : System.Xml.Linq.XElement
ExportBestAnalysis ( IMultiAccessorBase multiString, string elementName, Icu mode ) : System.Xml.Linq.XElement
ExportBestVernacular ( IMultiAccessorBase multiString, string elementName, Icu mode ) : System.Xml.Linq.XElement
ExportBestVernacularOrAnalysis ( IMultiAccessorBase multiString, string elementName, Icu mode ) : System.Xml.Linq.XElement
ExportBoundaryMarker ( IPhBdryMarker bdryMarker, Icu mode ) : System.Xml.Linq.XElement
ExportCodes ( IEnumerable codes, Icu mode ) : System.Xml.Linq.XElement
ExportCompoundRules ( IRepository endoCmpRepository, IRepository exoCmpRepository, Icu mode ) : System.Xml.Linq.XElement
ExportContext ( IPhContextOrVar context ) : System.Xml.Linq.XElement
ExportContextList ( IEnumerable simpleContexts ) : IEnumerable
ExportEntries ( IRepository entryRepos ) : System.Xml.Linq.XElement
ExportFeatureConstraint ( IPhFeatureConstraint featureConstraint ) : System.Xml.Linq.XElement
ExportFeatureDefn ( IFsFeatDefn featureDefn, Icu mode ) : System.Xml.Linq.XElement
ExportFeatureSpecification ( IFsFeatureSpecification featureSpec ) : System.Xml.Linq.XElement
ExportFeatureStructure ( IFsAbstractStructure absFeatStruc ) : System.Xml.Linq.XElement
ExportFeatureSystem ( IFsFeatureSystem featureSystem, string elementName, Icu mode ) : System.Xml.Linq.XElement
ExportInflectionClass ( IMoInflClass inflectionClass, Icu mode ) : System.Xml.Linq.XElement
ExportItemAsReference ( ICmObject target, int index, string elementName ) : System.Xml.Linq.XElement
ExportItemAsReference ( ICmObject target, string elementName ) : System.Xml.Linq.XElement
ExportLanguageProject ( ILangProject languageProject, Icu mode ) : System.Xml.Linq.XElement
ExportLexEntryInflTypes ( IRepository irregularlyInflectedFormTypeRepository, Icu mode ) : System.Xml.Linq.XElement
ExportLexiconFull ( IServiceLocator servLoc, Icu mode ) : System.Xml.Linq.XElement

Export the full lexicon when exporting both grammar and lexicon.

ExportMorphAdhocCoProhibition ( IMoMorphAdhocProhib morphAdhocProhib ) : System.Xml.Linq.XElement
ExportMorphTypes ( IRepository morphTypeRepository, Icu mode ) : System.Xml.Linq.XElement
ExportMsas ( IServiceLocator servLoc ) : System.Xml.Linq.XElement
ExportNaturalClass ( IPhNaturalClass naturalClass, Icu mode ) : System.Xml.Linq.XElement
ExportNaturalClassContents ( IPhNCFeatures naturalClass ) : IEnumerable
ExportNaturalClassContents ( IPhNCSegments naturalClass ) : IEnumerable
ExportParserParameters ( IMoMorphData morphologicalData, Icu mode ) : System.Xml.Linq.XElement
ExportPartOfSpeech ( IPartOfSpeech pos, ICollection cats, Icu mode ) : void
ExportPartOfSpeechGafaws ( string elementName, IPartOfSpeech partOfSpeech ) : System.Xml.Linq.XElement

Create element for one Gafaws PartOfSpeech object.

ExportPartsOfSpeech ( ILangProject languageProject, Icu mode ) : System.Xml.Linq.XElement
ExportPartsOfSpeechList ( IEnumerable partsOfSpeech, Icu mode ) : IEnumerable

Create elements for all PartOfSpeech objects in the owning vector.

ExportPhonRule ( IPhSegmentRule phonRule, Icu mode ) : System.Xml.Linq.XElement
ExportPhonRuleFeat ( IPhPhonRuleFeat phonRuleFeat, Icu mode ) : System.Xml.Linq.XElement
ExportPhonRuleFeats ( IPhPhonData phonData, Icu mode ) : System.Xml.Linq.XElement
ExportPhoneme ( IPhPhoneme phoneme, Icu mode ) : System.Xml.Linq.XElement
ExportPhonemeSet ( IPhPhonemeSet phonemeSet, Icu mode ) : System.Xml.Linq.XElement
ExportPhonologicalData ( IPhPhonData phonologicalData, Icu mode ) : System.Xml.Linq.XElement
ExportProdRestrict ( IMoMorphData morphData, Icu mode ) : System.Xml.Linq.XElement
ExportRuleMapping ( IMoRuleMapping ruleMapping ) : System.Xml.Linq.XElement
ExportSenses ( IRepository senseRepos, Icu mode ) : System.Xml.Linq.XElement
ExportStemName ( IMoStemName stemName, Icu mode ) : System.Xml.Linq.XElement
ExportWritingSystems ( IEnumerable wss, string elementName ) : System.Xml.Linq.XElement
IsValidSlot ( IMoInflAffixSlot affixSlot ) : bool
IsValidTemplate ( IMoInflAffixTemplate template ) : bool

Return true if this is considered a valid template, worth exporting for the various grammar tools. Currently this means at least one of its main slots is valid.

Normalize ( ITsString text, Icu mode ) : string
Normalize ( string text, Icu mode ) : string

Method Details

ExportGafaws() public static method

Export everything needed by parsers for GAFAWS data.
public static ExportGafaws ( IEnumerable partsOfSpeech ) : System.Xml.Linq.XDocument
partsOfSpeech IEnumerable
return System.Xml.Linq.XDocument

ExportGrammarAndLexicon() public static method

Export the grammar and lexicon.
public static ExportGrammarAndLexicon ( ILangProject languageProject ) : System.Xml.Linq.XDocument
languageProject ILangProject
return System.Xml.Linq.XDocument

ExportGrammarSketch() public static method

Exports data for the grammar sketch.
public static ExportGrammarSketch ( string outputPath, ILangProject languageProject ) : void
outputPath string The output path.
languageProject ILangProject The language project.
return void