|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jvoicexml.interpreter.grammar.transformer.SrgsXmlGrammarTransformer
public final class SrgsXmlGrammarTransformer
This class implements the GrammarTransformer interface. An instance of this class is able to transform a SRGS grammar with XML format into RuleGrammar instance. The mime type of the accepted grammar is application/srgs+xml.
Copyright © 2005-2007 JVoiceXML group - http://jvoicexml.sourceforge.net/
| Constructor Summary | |
|---|---|
SrgsXmlGrammarTransformer()
Standard constructor to instantiate as much GrammarTransformer as you need. |
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SrgsXmlGrammarTransformer()
GrammarTransformer as you need.
| Method Detail |
|---|
public GrammarType getSourceType()
getSourceType in interface GrammarTransformerpublic GrammarType getTargetType()
getTargetType in interface GrammarTransformer
public GrammarImplementation<? extends Object> createGrammar(UserInput input,
GrammarDocument grammar,
GrammarType type)
throws NoresourceError,
UnsupportedFormatError,
BadFetchError
createGrammar in interface GrammarTransformerinput - 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||