public final class ExecutableMenuForm extends java.lang.Object implements Dialog
Dialog for the
<menu> tag.
Since a menu is a shorthand notation for a field, this implementation creates a new field from the menu which is handled by the interpreter.
Menu| Constructor and Description |
|---|
ExecutableMenuForm()
Constructs a new object.
|
| 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 |
setChoiceConverter(ChoiceConverter choiceConverter)
Sets the choice converter to use.
|
void |
setNode(org.jvoicexml.xml.XmlNode node)
Associates the dialog with the given node.
|
public void setNode(org.jvoicexml.xml.XmlNode node)
throws java.lang.IllegalArgumentException
public void setChoiceConverter(ChoiceConverter choiceConverter)
choiceConverter - the choice converterpublic java.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.
public java.util.Collection<org.jvoicexml.xml.XmlNode> getChildNodes()
getChildNodes in interface Dialognull
if the field has not been created.public java.util.Collection<FormItem> getFormItems(VoiceXmlInterpreterContext context) throws BadFetchError
FormItems, defined in this form.
Creates an anonymous field, which does not exist in the document.getFormItems in interface Dialogcontext - The current context.FormItems.BadFetchError - Error converting choices.public java.util.Collection<org.jvoicexml.xml.vxml.Filled> getFilledElements()
<filled> elements.getFilledElements in interface Dialognull since the menu is transformed into an
anonymous <field> element.public java.util.Collection<org.jvoicexml.xml.vxml.AbstractCatchElement> getCatchElements()
<catch> elements.getCatchElements in interface Dialog<catch> tags.