public final class Filled extends AbstractXmlNode
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.
Form| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ATTRIBUTE_MODE
Either all (the default), or any.
|
static java.lang.String |
ATTRIBUTE_NAMELIST
The input items to trigger on.
|
protected static java.util.ArrayList<java.lang.String> |
ATTRIBUTE_NAMES
Supported attribute names for this node.
|
static java.lang.String |
TAG_NAME
Name of the tag.
|
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE| Constructor and Description |
|---|
Filled()
Construct a new filled object without a node.
|
| Modifier and Type | Method and Description |
|---|---|
Text |
addText(java.lang.String text)
Create a new text within this node.
|
protected boolean |
canContainChild(java.lang.String tagName)
Can the specified sub-tag be contained within this node?
|
java.util.Collection<java.lang.String> |
getAttributeNames()
Returns a collection of permitted attribute names for the node.
|
java.lang.String |
getMode()
Retrieve the mode attribute.
|
FilledMode |
getModeObject()
Retrieves the mode attribute object.
|
java.lang.String |
getNamelist()
Retrieve the namelist attribute.
|
TokenList |
getNameListObject()
Retrieve the namelist attribute as a list object.
|
java.lang.String |
getTagName()
Get the name of the tag for the derived node.
|
XmlNode |
newInstance(org.w3c.dom.Node n,
XmlNodeFactory<? extends XmlNode> factory)
Create a new instance for the given node.
|
void |
setMode(FilledMode mode)
Sets the mode attribute.
|
void |
setMode(java.lang.String mode)
Sets the mode attribute.
|
void |
setNamelist(java.lang.String namelist)
Set the namelist attribute.
|
void |
setNamelist(TokenList list)
Set the namelist attribute.
|
addChild, addChild, appendChild, appendChild, appendDeepClone, cloneNode, compareDocumentPosition, equals, getAttribute, getAttributes, getBaseURI, getChildNodes, getChildNodes, getChildren, getDefinedAttributeNames, getFeature, getFirstChild, getFirstLevelTextContent, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNode, getNodeFactory, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getOwnerXmlDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttribute, hasAttributes, hasChildNodes, hashCode, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setAttribute, setNodeValue, setPrefix, setTextContent, setUserData, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddChild, getAttribute, getChildNodes, getChildren, getNode, setAttributeappendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, 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, setUserDatapublic static final java.lang.String TAG_NAME
public static final java.lang.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 java.lang.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 java.util.ArrayList<java.lang.String> ATTRIBUTE_NAMES
public Filled()
This is necessary for the node factory.
VoiceXmlNodeFactorypublic java.lang.String getTagName()
public XmlNode newInstance(org.w3c.dom.Node n, XmlNodeFactory<? extends XmlNode> factory)
Each XmlNode can serve as a prototype in a
XmlNodeFactory to produce a collection of
child nodes. Factories can then use the prototype pattern to
produce new nodes.
n - The node to encapsulate.factory - the factroy that calls this method.XmlNodeFactorypublic java.lang.String getMode()
ATTRIBUTE_MODEpublic FilledMode getModeObject()
public void setMode(java.lang.String mode)
mode - Value of the mode attribute.ATTRIBUTE_MODEpublic void setMode(FilledMode mode)
mode - Value of the mode attribute.ATTRIBUTE_MODEpublic java.lang.String getNamelist()
ATTRIBUTE_NAMELISTpublic TokenList getNameListObject()
getNamelist()public void setNamelist(java.lang.String namelist)
namelist - Value of the namelist attribute.ATTRIBUTE_NAMELISTpublic void setNamelist(TokenList list)
list - Value of the namelist attribute.ATTRIBUTE_NAMELIST,
setNamelist(String)public Text addText(java.lang.String text)
text - The text to be added.protected boolean canContainChild(java.lang.String tagName)
canContainChild in class AbstractXmlNodetagName - Name of child.public java.util.Collection<java.lang.String> getAttributeNames()
getAttributeNames in interface XmlNodegetAttributeNames in class AbstractXmlNode