|
||||||||||
| 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.Filled
public final class Filled
An action executed when fields are filled.
The <filled> element specifies an action to perform when
some combination of input items are filled. It may occur in two places: as a
child of the <form> element, or as a child of an input
item.
As a child of a <form> element, the
<filled> element can be used to perform actions that
occur when a combination of one or more input items is filled.
If the <filled> element appears inside an input item, it
specifies an action to perform after that input item is filled in:
After each gathering of the user's input, all the input items mentioned in
the input are set, and then the interpreter looks at each
<filled> element in document order (no preference is
given to ones in input items vs. ones in the form). Those whose conditions
are matched by the utterance are then executed in order, until there are no
more, or until one transfers control or throws an event.
Copyright © 2005-2007 JVoiceXML group - http://jvoicexml.sourceforge.net/
Form| Field Summary | |
|---|---|
static String |
ATTRIBUTE_MODE
Either all (the default), or any. |
static String |
ATTRIBUTE_NAMELIST
The input items to trigger on. |
protected static ArrayList<String> |
ATTRIBUTE_NAMES
Supported attribute names for this node. |
static String |
TAG_NAME
Name of the tag. |
| Constructor Summary | |
|---|---|
Filled()
Construct a new filled object without a node. |
|
| Method Summary | |
|---|---|
Text |
addText(String text)
Create a new text within this node. |
protected boolean |
canContainChild(String tagName)
Can the specified sub-tag be contained within this node? |
Collection<String> |
getAttributeNames()
Returns a collection of permitted attribute names for the node. |
NodeList |
getChildNodes()
A NodeList that contains all children of this node. |
String |
getMode()
Retrieve the mode attribute. |
String |
getNamelist()
Retrieve the namelist attribute. |
String |
getTagName()
Get the name of the tag for the derived node. |
VoiceXmlNode |
newInstance(Node n)
Create a new instance for the given node. |
void |
setMode(String mode)
Set the mode attribute. |
void |
setNamelist(String namelist)
Set the namelist attribute. |
| 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, 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
public static final String ATTRIBUTE_MODE
<filled> element in an input item cannot specify a
mode; if a mode is specified, then an error.badfetch is thrown by the
platform upon encountering the document.
public static final String ATTRIBUTE_NAMELIST
<filled> in a
form, namelist defaults to the names (explicit and implicit) of the
form's input items. A <filled> element in an input
item cannot specify a namelist (the namelist in this case is the input
item name); if a namelist is specified, then an error.badfetch is thrown
by the platform upon encountering the document. Note that control items
are not permitted in this list; an error.badfetch is thrown when the
document contains a <filled> element with a namelist
attribute referencing a control item variable.
protected static final ArrayList<String> ATTRIBUTE_NAMES
| Constructor Detail |
|---|
public Filled()
This is necessary for the node factory.
VoiceXmlNodeFactory| Method Detail |
|---|
public String getTagName()
public VoiceXmlNode newInstance(Node n)
n - The node to encapsulate.
XmlNodeFactorypublic String getMode()
ATTRIBUTE_MODEpublic void setMode(String mode)
mode - Value of the mode attribute.ATTRIBUTE_MODEpublic String getNamelist()
ATTRIBUTE_NAMELISTpublic void setNamelist(String namelist)
namelist - Value of the namelist attribute.ATTRIBUTE_NAMELISTpublic Text addText(String text)
text - The text to be added.
protected boolean canContainChild(String tagName)
canContainChild in class AbstractXmlNodetagName - Name of child.
public Collection<String> getAttributeNames()
getAttributeNames in interface XmlNodegetAttributeNames in class AbstractXmlNodepublic 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 | |||||||||