org.jvoicexml.xml.vxml
Class AbstractCatchElement

java.lang.Object
  extended by org.jvoicexml.xml.AbstractXmlNode
      extended by org.jvoicexml.xml.vxml.AbstractCatchElement
All Implemented Interfaces:
VoiceXmlNode, XmlNode, XmlWritable, Node
Direct Known Subclasses:
Catch, Error, Help, Noinput, Nomatch

public abstract class AbstractCatchElement
extends AbstractXmlNode

The <catch> element associates a catch with a document, dialog, or form item (except for blocks). It contains executable content.

Main purpose of this call is to unify the commonalities of all <catch> tags.

Version:
$Revision: 154 $

Copyright © 2005-2006 JVoiceXML group - http://jvoicexml.sourceforge.net/

Author:
Dirk Schnelle, Steve Doyle
See Also:
Form, VoiceXmlDocument

Field Summary
static String ATTRIBUTE_COND
          An expression which must evaluate to true after conversion to boolean in order for the event to be caught.
static String ATTRIBUTE_COUNT
          The occurrence of the event (default is 1).
 
Fields inherited from interface org.w3c.dom.Node
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
 
Method Summary
 NodeList getChildNodes()
          A NodeList that contains all children of this node.
 String getCond()
          Retrieve the cond attribute.
 String getCount()
          Retrieve the count attribute.
abstract  TokenList getEventList()
          Retrieve a list with all events, caught by this catch element.
 void setCond(String cond)
          Set the cond attribute.
 void setCount(String count)
          Set the count attribute.
 
Methods inherited from class org.jvoicexml.xml.AbstractXmlNode
addChild, addChild, appendChild, canContainChild, cloneNode, compareDocumentPosition, getAttribute, getAttributeNames, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNode, getNodeFactory, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setAttribute, setNodeValue, setPrefix, setTextContent, setUserData, toString, writeChildrenXml, writeXml
 
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, getTagName, newInstance, 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

ATTRIBUTE_COUNT

public static final String ATTRIBUTE_COUNT
The occurrence of the event (default is 1). The count allows you to handle different occurrences of the same event differently.

See Also:
Constant Field Values

ATTRIBUTE_COND

public static final String ATTRIBUTE_COND
An expression which must evaluate to true after conversion to boolean in order for the event to be caught. Defaults to true.

See Also:
Constant Field Values
Method Detail

getCount

public final String getCount()
Retrieve the count attribute.

Returns:
Value of the count attribute.
See Also:
ATTRIBUTE_COUNT

setCount

public final void setCount(String count)
Set the count attribute.

Parameters:
count - Value of the count attribute.
See Also:
ATTRIBUTE_COUNT

getCond

public final String getCond()
Retrieve the cond attribute.

Returns:
Value of the cond attribute.
See Also:
ATTRIBUTE_COND

setCond

public final void setCond(String cond)
Set the cond attribute.

Parameters:
cond - Value of the cond attribute.
See Also:
ATTRIBUTE_COND

getEventList

public abstract TokenList getEventList()
Retrieve a list with all events, caught by this catch element.

Returns:
List with all events, caught by this catch element.

getChildNodes

public final NodeList getChildNodes()
A NodeList that contains all children of this node.

Specified by:
getChildNodes in interface Node
Returns:
NodeList


Copyright © 2005-2007 JVoiceXML group.