public final class JsgfGrammarIdentifier extends java.lang.Object implements GrammarIdentifier
application/x-jsgf.| Constructor and Description |
|---|
JsgfGrammarIdentifier() |
| 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. |
public org.jvoicexml.xml.srgs.GrammarType identify(GrammarDocument grammar)
grammar. If
grammar could be identified a type is returned, otherwise
null.
A JSGF grammar must have a self identifying header
#JSGF V1.0.identify in interface GrammarIdentifiergrammar - The grammar to be identified.public org.jvoicexml.xml.srgs.GrammarType getSupportedType()
getSupportedType in interface GrammarIdentifier