public final class DocumentGrammarImplementation extends java.lang.Object implements GrammarImplementation<GrammarDocument>
| Constructor and Description |
|---|
DocumentGrammarImplementation(GrammarDocument doc)
Constructs a new object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(GrammarImplementation<GrammarDocument> other)
Checks if this grammar implementation is equal to the given grammar
implementation.
|
GrammarDocument |
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 DocumentGrammarImplementation(GrammarDocument doc)
doc - the grammar document.public java.net.URI getURI()
getURI in interface GrammarImplementation<GrammarDocument>public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(GrammarImplementation<GrammarDocument> other)
equals in interface GrammarImplementation<GrammarDocument>other - the grammar implementation to compare with.true if the grammar implementations are equal.public GrammarDocument getGrammarDocument()
getGrammarDocument in interface GrammarImplementation<GrammarDocument>public org.jvoicexml.xml.srgs.GrammarType getMediaType()
getMediaType in interface GrammarImplementation<GrammarDocument>public org.jvoicexml.xml.srgs.ModeType getModeType()
getModeType in interface GrammarImplementation<GrammarDocument>