|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jvoicexml.xml.XmlDocument
org.jvoicexml.xml.vxml.VoiceXmlDocument
public final class VoiceXmlDocument
A VoiceXML document according to the specifcation in http://www.w3.org/TR/2005/REC-voicexml20-20050316.
VoiceXML is designed for creating audio dialogs that feature synthesized speech, digitized audio, regognition of spoken and DTMF key input, recording of spoken input, telephony and mixed initiative conversations. Its major goal is to bring the advantages of web-based development and content delivery to interactive voiceresponse applications.
Objects of this class can create such VoiceXML documents or parse them.
Copyright © 2005-2006 JVoiceXML group - http://jvoicexml.sourceforge.net/
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
VoiceXmlDocument()
Create an empty VoiceXML document containg only the root Vxml element. |
|
VoiceXmlDocument(Document doc)
Construct a new VoiceXML document with the given document. |
|
VoiceXmlDocument(InputSource source)
Constructs a new VoiceXML document from the given input source. |
|
| Method Summary | |
|---|---|
protected Node |
createRootNode()
Create the root node of the document. Creates a new Vxml node. |
DocumentType |
getDoctype()
The Document Type Declaration (see DocumentType)
associated with this document. |
Vxml |
getVxml()
Get the one and only child of this document: The Vxml node. |
XmlNodeFactory |
getXmlNodefactory()
Retrieves the node factory for child node lists. |
protected NodeList |
getXmlNodeList(NodeList nodeList)
Get the XmlNodeList object corresponding to the nodelist. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public VoiceXmlDocument()
throws ParserConfigurationException
ParserConfigurationException - Error creating the document builder.
public VoiceXmlDocument(InputSource source)
throws ParserConfigurationException,
SAXException,
IOException
source - Input source for a single XML document.
ParserConfigurationException - Error creating the document builder.
SAXException - Error parsing the input source.
IOException - Error reading the input source.public VoiceXmlDocument(Document doc)
doc - Encapsulated document.| Method Detail |
|---|
public DocumentType getDoctype()
DocumentType)
associated with this document.
getDoctype in interface DocumentgetDoctype in class XmlDocumentpublic XmlNodeFactory getXmlNodefactory()
getXmlNodefactory in class XmlDocumentprotected Node createRootNode()
createRootNode in class XmlDocumentpublic Vxml getVxml()
null if there is none.protected NodeList getXmlNodeList(NodeList nodeList)
getXmlNodeList in class XmlDocumentnodeList - -
Node to convert to an XmlNodeList
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||