T - grammar implementationpublic interface GrammarParser<T>
GrammarDocument into
something that can be evaluated later to retrieve semantic interpretation
from a given utterance .| Modifier and Type | Method and Description |
|---|---|
org.jvoicexml.xml.srgs.GrammarType |
getType()
Retrieves the grammar type that this parser will process.
|
GrammarImplementation<T> |
load(java.net.URI uri)
Loads a grammar by its URI.
|
GrammarEvaluator |
parse(GrammarDocument document)
Parses a given
GrammarDocument into a GrammarEvaluator. |
org.jvoicexml.xml.srgs.GrammarType getType()
GrammarImplementation<T> load(java.net.URI uri) throws java.io.IOException
uri - the URI to load the grammar fromjava.io.IOException - error loading the grammarGrammarEvaluator parse(GrammarDocument document) throws java.io.IOException, UnsupportedFormatError
GrammarDocument into a GrammarEvaluator.
This also means that there is a 1:1 relationship between grammars and
their evaluators.document - the document to process.java.io.IOException - error reading the grammarUnsupportedFormatError - the grammar format is not supported