public final class JVoiceXmlDialogFactory extends java.lang.Object implements DialogFactory
DialogFactory.| Constructor and Description |
|---|
JVoiceXmlDialogFactory()
Constructs a new object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDialogMapping(java.lang.String tag,
Dialog dialog)
Adds the dialog as a template to handle the given tag.
|
java.util.Collection<Dialog> |
getDialogs(org.jvoicexml.xml.vxml.Vxml vxml)
Retrieves a collection of all
Dialogs in the
given VoiceXML document with the help of the given configuration. |
void |
setDialogs(java.util.Map<java.lang.String,Dialog> mappings)
Adds the given mappings of dialogs to tag names.
|
public void setDialogs(java.util.Map<java.lang.String,Dialog> mappings)
mappings - the mappings to addpublic void addDialogMapping(java.lang.String tag,
Dialog dialog)
tag - the tag that is handled by the dialogdialog - the dialogpublic java.util.Collection<Dialog> getDialogs(org.jvoicexml.xml.vxml.Vxml vxml)
Dialogs in the
given VoiceXML document with the help of the given configuration.getDialogs in interface DialogFactoryvxml - the document.Dialogs.