public interface GrammarIdentifier
GrammarIdentifier interface declares
a couple of methods to identify a certain grammar document.
Each implementation of this class is considered to
be an identifier for a certain grammar. So common
task of all of these implementations is to identify
one, and only one specific kind of grammar.| Modifier and Type | Method and Description |
|---|---|
org.jvoicexml.xml.srgs.GrammarType |
getSupportedType()
Returns the supported media type.
|
org.jvoicexml.xml.srgs.GrammarType |
identify(GrammarDocument grammar)
Identifies the grammar specified by
grammar. |
org.jvoicexml.xml.srgs.GrammarType identify(GrammarDocument grammar)
grammar. If
grammar could be identified a type is returned, otherwise
null.grammar - The grammar to be identified.org.jvoicexml.xml.srgs.GrammarType getSupportedType()