2 implementations of IElementFactory
System.Speech (2)
Internal\SrgsCompiler\SrgsElementCompilerFactory.cs (1)
13internal class SrgsElementCompilerFactory : IElementFactory
Recognition\SrgsGrammar\SrgsElementFactory.cs (1)
13internal class SrgsElementFactory : IElementFactory
65 references to IElementFactory
System.Speech (65)
Internal\GrammarBuilding\BuilderElements.cs (2)
154internal void CreateChildrenElements(IElementFactory elementFactory, IRule parent, IdentifierCollection ruleIds) 167internal void CreateChildrenElements(IElementFactory elementFactory, IItem parent, IRule rule, IdentifierCollection ruleIds)
Internal\GrammarBuilding\GrammarBuilderBase.cs (1)
15internal abstract IElement? CreateElement(IElementFactory elementFactory, IElement parent, IRule rule, IdentifierCollection ruleIds);
Internal\GrammarBuilding\GrammarBuilderDictation.cs (2)
49internal override IElement CreateElement(IElementFactory elementFactory, IElement parent, IRule rule, IdentifierCollection ruleIds) 72private IRuleRef CreateRuleRefToDictation(IElementFactory elementFactory, IElement parent)
Internal\GrammarBuilding\GrammarBuilderPhrase.cs (2)
80internal override IElement? CreateElement(IElementFactory elementFactory, IElement parent, IRule rule, IdentifierCollection ruleIds) 101private IElement? CreatePhraseElement(IElementFactory elementFactory, IElement parent)
Internal\GrammarBuilding\GrammarBuilderRuleRef.cs (1)
49internal override IElement CreateElement(IElementFactory elementFactory, IElement parent, IRule? rule, IdentifierCollection ruleIds)
Internal\GrammarBuilding\GrammarBuilderWildcard.cs (1)
39internal override IElement CreateElement(IElementFactory elementFactory, IElement parent, IRule? rule, IdentifierCollection ruleIds)
Internal\GrammarBuilding\ItemElement.cs (1)
86internal override IElement CreateElement(IElementFactory elementFactory, IElement parent, IRule rule, IdentifierCollection ruleIds)
Internal\GrammarBuilding\OneOfElement.cs (1)
30internal override IElement CreateElement(IElementFactory elementFactory, IElement parent, IRule rule, IdentifierCollection ruleIds)
Internal\GrammarBuilding\RuleElement.cs (1)
57internal override IElement CreateElement(IElementFactory elementFactory, IElement parent, IRule? rule, IdentifierCollection ruleIds)
Internal\GrammarBuilding\RuleRefElement.cs (1)
62internal override IElement CreateElement(IElementFactory elementFactory, IElement parent, IRule? rule, IdentifierCollection ruleIds)
Internal\GrammarBuilding\SemanticKeyElement.cs (1)
70internal override IElement CreateElement(IElementFactory elementFactory, IElement parent, IRule? rule, IdentifierCollection ruleIds)
Internal\GrammarBuilding\TagElement.cs (1)
67internal override IElement CreateElement(IElementFactory elementFactory, IElement parent, IRule rule, IdentifierCollection ruleIds)
Internal\SrgsCompiler\SrgsElementCompilerFactory.cs (21)
30void IElementFactory.RemoveAllRules() 34IPropertyTag IElementFactory.CreatePropertyTag(IElement parent) 39ISemanticTag IElementFactory.CreateSemanticTag(IElement parent) 44IElementText IElementFactory.CreateText(IElement parent, string value) 49IToken IElementFactory.CreateToken(IElement parent, string content, string? pronunciation, string? display, float reqConfidence) 55IItem IElementFactory.CreateItem(IElement? parent, IRule rule, int minRepeat, int maxRepeat, float repeatProbability, float weight) 60IRuleRef IElementFactory.CreateRuleRef(IElement parent, Uri srgsUri) 65IRuleRef IElementFactory.CreateRuleRef(IElement parent, Uri srgsUri, string? semanticKey, string? parameters) 70void IElementFactory.InitSpecialRuleRef(IElement parent, IRuleRef specialRule) 75IOneOf IElementFactory.CreateOneOf(IElement? parent, IRule rule) 80ISubset IElementFactory.CreateSubset(IElement parent, string text, MatchMode mode) 85void IElementFactory.AddScript(IGrammar grammar, string rule, string code) 90string IElementFactory.AddScript(IGrammar grammar, string rule, string code, string? filename, int line) 109void IElementFactory.AddScript(IGrammar grammar, string script, string? filename, int line) 143void IElementFactory.AddItem(IOneOf oneOf, IItem item) 147void IElementFactory.AddElement(IRule rule, IElement value) 151void IElementFactory.AddElement(IItem item, IElement value) 159IGrammar IElementFactory.Grammar 167IRuleRef IElementFactory.Null 174IRuleRef IElementFactory.Void 181IRuleRef IElementFactory.Garbage
Internal\SrgsParser\ISrgsParser.cs (1)
9IElementFactory ElementFactory { set; }
Internal\SrgsParser\SrgsDocumentParser.cs (2)
43public IElementFactory ElementFactory 420private IElementFactory _parser = null!; // Correct usage relies on ElementFactory being set
Internal\SrgsParser\XmlParser.cs (2)
224public IElementFactory ElementFactory 1880private IElementFactory _parser = null!;
Recognition\GrammarBuilder.cs (2)
375internal void CreateGrammar(IElementFactory elementFactory) 476internal override IElement? CreateElement(IElementFactory elementFactory, IElement? parent, IRule? rule, IdentifierCollection ruleIds)
Recognition\SrgsGrammar\SrgsDocument.cs (1)
60IElementFactory elementFactory = new SrgsElementFactory(_grammar);
Recognition\SrgsGrammar\SrgsElementFactory.cs (21)
23void IElementFactory.RemoveAllRules() 27IPropertyTag IElementFactory.CreatePropertyTag(IElement parent) 32ISemanticTag IElementFactory.CreateSemanticTag(IElement parent) 37IElementText IElementFactory.CreateText(IElement parent, string value) 42IToken IElementFactory.CreateToken(IElement parent, string content, string? pronunciation, string? display, float reqConfidence) 92IItem IElementFactory.CreateItem(IElement? parent, IRule? rule, int minRepeat, int maxRepeat, float repeatProbability, float weight) 104IRuleRef IElementFactory.CreateRuleRef(IElement parent, Uri srgsUri) 109IRuleRef IElementFactory.CreateRuleRef(IElement? parent, Uri srgsUri, string? semanticKey, string? parameters) 114IOneOf IElementFactory.CreateOneOf(IElement? parent, IRule? rule) 119ISubset IElementFactory.CreateSubset(IElement? parent, string text, MatchMode matchMode) 144void IElementFactory.InitSpecialRuleRef(IElement? parent, IRuleRef special) 148void IElementFactory.AddScript(IGrammar grammar, string sRule, string code) 162string IElementFactory.AddScript(IGrammar grammar, string sRule, string code, string? filename, int line) 167void IElementFactory.AddScript(IGrammar grammar, string script, string? filename, int line) 173void IElementFactory.AddItem(IOneOf oneOf, IItem value) 178void IElementFactory.AddElement(IRule rule, IElement value) 183void IElementFactory.AddElement(IItem item, IElement value) 188IGrammar IElementFactory.Grammar 196IRuleRef IElementFactory.Null 203IRuleRef IElementFactory.Void 210IRuleRef IElementFactory.Garbage