org.jvoicexml.xml.ccxml
Class CcxmlDocument

java.lang.Object
  extended by org.jvoicexml.xml.XmlDocument
      extended by org.jvoicexml.xml.ccxml.CcxmlDocument
All Implemented Interfaces:
XmlWritable, Document, Node

public final class CcxmlDocument
extends XmlDocument

A CCXML document according to the specifcation in http://www.w3.org/TR/ccxml.

CCXML is designed to provide telephony call control support for dialog systems, such as VoiceXML [VOICEXML]. While CCXML can be used with any dialog systems capable of handling media, CCXML has been designed to complement and integrate with a VoiceXML interpreter.

Objects of this class can create such CCXML documents or parse them.

Version:
$Revision: 1.2 $

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

Author:
Steve Doyle

Field Summary
 
Fields inherited from class org.jvoicexml.xml.XmlDocument
document
 
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
CcxmlDocument()
          Create an empty CCXML document containg only the root Ccxml element.
CcxmlDocument(Document doc)
          Construct a new CCXML document with the given document.
CcxmlDocument(InputSource source)
          Constructs a new CCXML document from the given input source.
 
Method Summary
protected  Node createRootNode()
          Create a new Ccxml node.
 Ccxml getCcxml()
          Get the one and only child of this document: The Ccxml node.
protected  Node getXmlNode(Node node)
          Get the XmlNode object corresponding to the node.
protected  NodeList getXmlNodeList(NodeList nodeList)
          Get the XmlNodeList object corresponding to the nodelist.
 
Methods inherited from class org.jvoicexml.xml.XmlDocument
adoptNode, appendChild, cloneNode, compareDocumentPosition, createAttribute, createAttributeNS, createCDATASection, createComment, createDocumentFragment, createElement, createElementNS, createEntityReference, createProcessingInstruction, createTextNode, getAttributes, getBaseURI, getChildNodes, getDoctype, getDocumentElement, getDocumentURI, getDomConfig, getElementById, getElementsByTagName, getElementsByTagNameNS, getFeature, getFirstChild, getImplementation, getInputEncoding, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getStrictErrorChecking, getTextContent, getUserData, getXmlEncoding, getXmlStandalone, getXmlVersion, hasAttributes, hasChildNodes, importNode, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, normalizeDocument, removeChild, renameNode, replaceChild, setDocumentURI, setNodeValue, setPrefix, setStrictErrorChecking, setTextContent, setUserData, setXmlStandalone, setXmlVersion, toString, toXml, writeChildrenXml, writeXml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CcxmlDocument

public CcxmlDocument()
              throws ParserConfigurationException
Create an empty CCXML document containg only the root Ccxml element.

Throws:
ParserConfigurationException - Error creating the document builder.

CcxmlDocument

public CcxmlDocument(InputSource source)
              throws ParserConfigurationException,
                     SAXException,
                     IOException
Constructs a new CCXML document from the given input source.

Parameters:
source - Input source for a single XML document.
Throws:
ParserConfigurationException - Error creating the document builder.
SAXException - Error parsing the input source.
IOException - Error reading the input source.

CcxmlDocument

public CcxmlDocument(Document doc)
Construct a new CCXML document with the given document.

Parameters:
doc - Encapsulated document.
Method Detail

createRootNode

protected Node createRootNode()
Create a new Ccxml node.

Specified by:
createRootNode in class XmlDocument
Returns:
The new created ccxml.

getCcxml

public Ccxml getCcxml()
Get the one and only child of this document: The Ccxml node.

Returns:
The Ccxml child, null if there is none.

getXmlNode

protected Node getXmlNode(Node node)
Get the XmlNode object corresponding to the node.

Specified by:
getXmlNode in class XmlDocument
Parameters:
node - - Node to convert to an XmlNode
Returns:
XmlNode representing the node.

getXmlNodeList

protected NodeList getXmlNodeList(NodeList nodeList)
Get the XmlNodeList object corresponding to the nodelist.

Specified by:
getXmlNodeList in class XmlDocument
Parameters:
nodeList - - Node to convert to an XmlNodeList
Returns:
XmlNodeList representing the node.


Copyright © 2005 JVoiceXML group.