public interface Dialog extends DialogConstruct, java.lang.Cloneable
Dialogs are either <form> or
a <menu> and are interpreted via the
FormInterpretationAlgorithm.
They can contain FormItems.
The VoiceXML specification mixes the two names form and
dialog. In order to avoid confusing the term forms with the
<form>-tag the term dialog was chosen.
FormInterpretationAlgorithm,
FormItem,
Form,
Menu| Modifier and Type | Method and Description |
|---|---|
Dialog |
clone()
Creates a clone of this dialog.
|
java.util.Collection<org.jvoicexml.xml.vxml.AbstractCatchElement> |
getCatchElements()
Gets all nested
<catch> elements. |
java.util.Collection<org.jvoicexml.xml.XmlNode> |
getChildNodes()
Retrieves the child nodes of this executable form.
|
java.util.Collection<org.jvoicexml.xml.vxml.Filled> |
getFilledElements()
Gets all nested
<filled> elements. |
java.util.Collection<FormItem> |
getFormItems(VoiceXmlInterpreterContext context)
Retrieves all
FormItems, defined in this form. |
java.lang.String |
getId()
Retrieves the identifier of this
dialog. |
void |
setNode(org.jvoicexml.xml.XmlNode node)
Associates the dialog with the given node.
|
Dialog clone()
void setNode(org.jvoicexml.xml.XmlNode node)
throws java.lang.IllegalArgumentException
node - the nodejava.lang.IllegalArgumentException - if the dialog can not be associated with the nodejava.lang.String getId()
dialog.
It allows the Dialog to be target of
a <goto> or a <submit>.
If the related form or menu does not provide an id a randomly chosen id is returned as the id for this dialog.
java.util.Collection<org.jvoicexml.xml.XmlNode> getChildNodes()
java.util.Collection<FormItem> getFormItems(VoiceXmlInterpreterContext context) throws BadFetchError
FormItems, defined in this form.context - The current context.FormItems.BadFetchError - Error obtaining the form items.java.util.Collection<org.jvoicexml.xml.vxml.Filled> getFilledElements()
<filled> elements.<filled> tags.java.util.Collection<org.jvoicexml.xml.vxml.AbstractCatchElement> getCatchElements()
<catch> elements.<catch> tags.