public class JSGFRuleGrammarManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,JSGFRuleGrammar> |
grammars |
Constructor and Description |
---|
JSGFRuleGrammarManager() |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<JSGFRuleGrammar> |
grammars() |
void |
linkGrammars() |
void |
remove(JSGFRuleGrammar grammar) |
void |
remove(java.lang.String name) |
JSGFRuleGrammar |
retrieveGrammar(java.lang.String name)
Retrieve a grammar from the grammar list.
|
protected void |
storeGrammar(JSGFRuleGrammar grammar)
Add a grammar to the grammar list.
|
protected java.util.Map<java.lang.String,JSGFRuleGrammar> grammars
public java.util.Collection<JSGFRuleGrammar> grammars()
public void remove(JSGFRuleGrammar grammar)
public void remove(java.lang.String name)
protected void storeGrammar(JSGFRuleGrammar grammar)
grammar
- to storepublic JSGFRuleGrammar retrieveGrammar(java.lang.String name)
name
- grammar name to loadpublic void linkGrammars() throws JSGFGrammarException
JSGFGrammarException