public final class SrgsXmlGrammarImplementation extends java.lang.Object implements GrammarImplementation<org.jvoicexml.xml.srgs.SrgsXmlDocument>
| Constructor and Description |
|---|
SrgsXmlGrammarImplementation(org.jvoicexml.xml.srgs.SrgsXmlDocument doc,
java.net.URI documentUri)
Constructs a new object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(GrammarImplementation<org.jvoicexml.xml.srgs.SrgsXmlDocument> other)
Checks if this grammar implementation is equal to the given grammar
implementation.
|
org.jvoicexml.xml.srgs.SrgsXmlDocument |
getGrammarDocument()
Retrieves the grammar document.
|
org.jvoicexml.xml.srgs.GrammarType |
getMediaType()
Returns the declared media type of the external grammar.
|
org.jvoicexml.xml.srgs.ModeType |
getModeType()
Returns the mode type of the grammar.
|
java.net.URI |
getURI()
Retrieves the URI of the grammar.
|
int |
hashCode() |
public SrgsXmlGrammarImplementation(org.jvoicexml.xml.srgs.SrgsXmlDocument doc,
java.net.URI documentUri)
doc - the grammardocumentUri - the URI of the grammar documentpublic java.net.URI getURI()
getURI in interface GrammarImplementation<org.jvoicexml.xml.srgs.SrgsXmlDocument>public org.jvoicexml.xml.srgs.SrgsXmlDocument getGrammarDocument()
getGrammarDocument in interface GrammarImplementation<org.jvoicexml.xml.srgs.SrgsXmlDocument>public org.jvoicexml.xml.srgs.GrammarType getMediaType()
getMediaType in interface GrammarImplementation<org.jvoicexml.xml.srgs.SrgsXmlDocument>public org.jvoicexml.xml.srgs.ModeType getModeType()
getModeType in interface GrammarImplementation<org.jvoicexml.xml.srgs.SrgsXmlDocument>public boolean equals(GrammarImplementation<org.jvoicexml.xml.srgs.SrgsXmlDocument> other)
equals in interface GrammarImplementation<org.jvoicexml.xml.srgs.SrgsXmlDocument>other - the grammar implementation to compare with.true if the grammar implementations are equal.public int hashCode()
hashCode in class java.lang.Object