|
||||||||||
| 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.srgs.SrgsXmlDocument
public final class SrgsXmlDocument
A SRGS XML document according to the specifcation in http://www.w3.org/TR/2004/REC-speech-grammar-20040316/.
Objects of this class can create SRGS XML grammar documents or parse them.
Copyright © 2005-2007 JVoiceXML group - http://jvoicexml.sourceforge.net/
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
SrgsXmlDocument()
Creates an empty XML Grammar Document. |
|
SrgsXmlDocument(InputSource source)
Constructs a new Grammar document from the given input source. |
|
| Method Summary | |
|---|---|
protected Node |
createRootNode()
Create the root node of the document. |
Grammar |
getGrammar()
Get the one and only child of this document: The grammar 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 SrgsXmlDocument()
throws ParserConfigurationException
ParserConfigurationException - If anything goes wrong while parsing the document.
public SrgsXmlDocument(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 Grammar getGrammar()
null if there is
none.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||