public final class LoadedGrammar
extends java.lang.Object
<grammar> that has been loaded by the
SpokenInput. In fact this is a pair of
a GrammarDocument and a GrammarImplementation.| Constructor and Description |
|---|
LoadedGrammar()
Constructs a new object.
|
LoadedGrammar(GrammarDocument doc,
GrammarImplementation<?> impl)
Constructs a new object initializing with the given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
GrammarDocument |
getDocument()
Retrieves the grammar document.
|
GrammarImplementation<?> |
getImplementation()
Retrieves the grammar implementation.
|
int |
hashCode() |
void |
setDocument(GrammarDocument doc)
Sets the grammar document.
|
void |
setImplementation(GrammarImplementation<?> impl)
Sets the grammar implementation.
|
public LoadedGrammar()
public LoadedGrammar(GrammarDocument doc, GrammarImplementation<?> impl)
doc - the grammar documentimpl - the grammar implementationpublic GrammarDocument getDocument()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic void setDocument(GrammarDocument doc)
doc - the grammar documentpublic GrammarImplementation<?> getImplementation()
public void setImplementation(GrammarImplementation<?> impl)
impl - the grammar implementation