public final class VoiceXmlInterpreter
extends java.lang.Object
| Constructor and Description |
|---|
VoiceXmlInterpreter(VoiceXmlInterpreterContext ctx)
Constructs a new object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
enterFinalProcessingState()
Under certain circumstances (in particular, while the VoiceXML
interpreter is processing a disconnect event) the interpreter may
continue executing in the final processing state after there is no longer
a connection to allow the interpreter to interact with the end user.
|
Dialog |
getDialog(java.lang.String id)
Retrieves the dialog with the given id.
|
FormInterpretationAlgorithm |
getFormInterpretationAlgorithm()
Retrieves the current FIA.
|
java.util.Locale |
getLanguage()
Retrieves the language of the current VoiceXML document.
|
Dialog |
getNextDialog()
Retrieves the next dialog to process.
|
InterpreterState |
getState()
Retrieves the interpreter state.
|
boolean |
isInFinalProcessingState()
Checks, if the interpreter is in the final processing state.
|
void |
process(Dialog dialog,
java.util.Map<java.lang.String,java.lang.Object> parameters)
Process the given dialog.
|
void |
setState(InterpreterState newState)
Sets the interpreter state.
|
public VoiceXmlInterpreter(VoiceXmlInterpreterContext ctx)
ctx - The VoiceXML interpreter context.public FormInterpretationAlgorithm getFormInterpretationAlgorithm()
null
otherwise.public InterpreterState getState()
public void setState(InterpreterState newState)
newState - the new interpreter state.public Dialog getNextDialog()
null if there is no
next dialog to process.public Dialog getDialog(java.lang.String id)
id - Id of the form to find.null if there is no dialog
with that id.public void process(Dialog dialog, java.util.Map<java.lang.String,java.lang.Object> parameters) throws JVoiceXMLEvent
dialog - the dialog to be processed.parameters - passed parameters when executing this dialogJVoiceXMLEvent - Error or event processing the dialog.public void enterFinalProcessingState()
public boolean isInFinalProcessingState()
true if the interpreter is in the final processing
state.public java.util.Locale getLanguage()
If the language is not set, the system's default locale is used by
calling Locale.getDefault().
null if there is
no document.