|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jvoicexml.interpreter.ActiveGrammarSet
public final class ActiveGrammarSet
The set of grammars active during a VoiceXML interpreter context's input collection operation.
| Constructor Summary | |
|---|---|
ActiveGrammarSet(ScopeObserver scopeObserver)
Constructs a new object. |
|
| Method Summary | |
|---|---|
void |
add(GrammarDocument grammar)
Adds the given grammar to the active grammar set. |
void |
addActiveGrammarSetObserver(ActiveGrammarSetObserver obs)
Adds the given observer to the list of known observers. |
void |
addAll(Collection<GrammarDocument> grams)
Adds the given grammars to the active grammar set. |
boolean |
contains(GrammarDocument document)
Checks if the active grammar set contains the given grammar document. |
Collection<GrammarDocument> |
getGrammars()
Retrieves the grammars that are currently contained in the set. |
void |
removeActiveGrammarSetObserver(ActiveGrammarSetObserver obs)
Removes the given scope observer from the list of known observers. |
void |
scopedSetChange(ScopedSet<GrammarDocument> set,
Collection<GrammarDocument> removed)
The given set changed due to a scope change. |
int |
size()
Retrieves the number of active grammars. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ActiveGrammarSet(ScopeObserver scopeObserver)
scopeObserver - The current scope observer.| Method Detail |
|---|
public void addActiveGrammarSetObserver(ActiveGrammarSetObserver obs)
obs - the observer to addpublic void removeActiveGrammarSetObserver(ActiveGrammarSetObserver obs)
obs - the observer to removepublic int size()
public void add(GrammarDocument grammar)
grammar - the grammar to addpublic void addAll(Collection<GrammarDocument> grams)
grams - the grammar to addpublic boolean contains(GrammarDocument document)
document - the grammar document to look for.
true if the active grammar set contains the
given grammar documentpublic Collection<GrammarDocument> getGrammars()
public void scopedSetChange(ScopedSet<GrammarDocument> set,
Collection<GrammarDocument> removed)
scopedSetChange in interface ScopedSetObserver<GrammarDocument>set - the changed setremoved - the removed items
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||