|
||||||||||
| 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.ssml.SsmlDocument
public final class SsmlDocument
A SSML XML document according to the specifcation in http://www.w3.org/TR/2003/CR-speech-synthesis-20031218/.
Objects of this class can create SSML XML documents or parse them.
Copyright © 2006 JVoiceXML group - http://jvoicexml.sourceforge.net/
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
SsmlDocument()
Creates an empty SSML Document. |
|
SsmlDocument(InputSource source)
Creates a new SSML document from the given input source. |
|
| Method Summary | |
|---|---|
protected Node |
createRootNode()
Create the root node of the document. |
Speak |
getSpeak()
Get the one and only child of this document: The speak 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 SsmlDocument()
throws ParserConfigurationException
ParserConfigurationException - If anything goes wrong while parsing the document.
public SsmlDocument(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.| Method Detail |
|---|
public XmlNodeFactory getXmlNodefactory()
getXmlNodefactory in class XmlDocumentprotected Node createRootNode()
createRootNode in class XmlDocumentprotected NodeList getXmlNodeList(NodeList nodeList)
getXmlNodeList in class XmlDocumentnodeList - -
Node to convert to an XmlNodeList
public Speak getSpeak()
null if there is
none.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||