org.jvoicexml.xml.vxml
Class AbstractCatchElement

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

public abstract class AbstractCatchElement
extends VoiceXmlNode

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: 1.5 $

Copyright © 2005 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 class org.jvoicexml.xml.XmlNode
node
 
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
 
Constructor Summary
AbstractCatchElement(Node node)
          Construct a new object.
 
Method Summary
 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.vxml.VoiceXmlNode
getChildNodes, getFirstChild, getLastChild, getNextSibling, getParentNode, getPreviousSibling
 
Methods inherited from class org.jvoicexml.xml.XmlNode
addChild, appendChild, canContainChild, cloneNode, compareDocumentPosition, getAttribute, getAttributeNames, getAttributes, getBaseURI, getChildNodes, getFeature, getLocalName, getNamespaceURI, getNode, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getPrefix, getTagName, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, newInstance, 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
 

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
Constructor Detail

AbstractCatchElement

AbstractCatchElement(Node node)
Construct a new object.

Parameters:
node - The encapsulated node.
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.


Copyright © 2005 JVoiceXML group.