|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jvoicexml.xml.AbstractXmlNode
org.jvoicexml.xml.vxml.Enumerate
public final class Enumerate
Shorthand for enumerating the choices in a menu.
The <enumerate> element is an automatically generated
description of the choices available to the user. It specifies a template
that is applied to each choice in the order they appear in the menu. If it is
used with no content, a default template that lists all the choices is used,
determined by the interpreter context. If it has content, the content is the
template specifier. This specifier may refer to two special variables:
_prompt is the choice's prompt, and _dtmf is a normalized representation
(i.e. a single whitespace between DTMF tokens) of the choice's assigned DTMF
sequence (note that if no DTMF sequence is assigned to the choice element, or
if a <grammar> element is specified in
<choice>, then the _dtmf variable is assigned the
ECMAScript undefined value ).
The <enumerate> element may be used within the prompts
and the catch elements associated with <menu> elements
and with <field> elements that contain
<option> elements.
Copyright © 2005-2007 JVoiceXML group - http://jvoicexml.sourceforge.net/
Grammar,
Choice,
Menu,
Field,
Option| Field Summary | |
|---|---|
static String |
TAG_NAME
Name of the tag. |
| Constructor Summary | |
|---|---|
Enumerate()
Construct a new enumerate object without a node. |
|
| Method Summary | |
|---|---|
protected boolean |
canContainChild(String tagName)
Can the specified sub-tag be contained within this node? |
NodeList |
getChildNodes()
A NodeList that contains all children of this node. |
String |
getTagName()
Get the name of the tag for the derived node. |
VoiceXmlNode |
newInstance(Node n)
Create a new instance for the given node. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jvoicexml.xml.XmlNode |
|---|
addChild, getAttribute, getAttributeNames, getChildNodes, getNode, setAttribute |
| Methods inherited from interface org.jvoicexml.xml.XmlWritable |
|---|
writeChildrenXml, writeXml |
| Methods inherited from interface org.w3c.dom.Node |
|---|
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData |
| Field Detail |
|---|
public static final String TAG_NAME
| Constructor Detail |
|---|
public Enumerate()
This is necessary for the node factory.
VoiceXmlNodeFactory| Method Detail |
|---|
public String getTagName()
public VoiceXmlNode newInstance(Node n)
n - The node to encapsulate.
XmlNodeFactoryprotected boolean canContainChild(String tagName)
canContainChild in class AbstractXmlNodetagName - Name of child.
public final NodeList getChildNodes()
NodeList that contains all children of this node.
getChildNodes in interface Node
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||