|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface GrammarTransformer
The GrammarHandler interface defines a couple of
methods to process a grammar document from a source type into a target type.
Every implementation of this interface has a
GrammarHandlerModeDesc which describes the way a
certain input GrammarDocument is processed and
converted to a GrammarImplementation.
Copyright © 2005-2007 JVoiceXML group - http://jvoicexml.sourceforge.net/
| Method Summary | |
|---|---|
GrammarImplementation<? extends Object> |
createGrammar(UserInput input,
GrammarDocument grammar,
GrammarType type)
Creates a JSGF compatible grammar object, which can be passed to the ASR engine. |
GrammarType |
getSourceType()
Returns the supported source media type. |
GrammarType |
getTargetType()
Returns the supported result media type. |
| Method Detail |
|---|
GrammarImplementation<? extends Object> createGrammar(UserInput input,
GrammarDocument grammar,
GrammarType type)
throws NoresourceError,
UnsupportedFormatError,
BadFetchError
input - The current UserInput to create an empty
grammar.grammar - The grammar document to transform.type - The target type of the grammar.
NoresourceError - Error creating a grammar from the input device.
UnsupportedFormatError - If an unsupported grammar has been given.
BadFetchError - If the document could not be fetched successfully.GrammarType getSourceType()
GrammarType getTargetType()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||