org.jvoicexml.interpreter.grammar
Interface GrammarIdentifier

All Known Implementing Classes:
JsgfGrammarIdentifier, SrgsAbnfGrammarIdentifier, SrgsXmlGrammarIdentifier

public interface GrammarIdentifier

The 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.

Version:
$Revision: 216 $

Copyright © 2005-2007 JVoiceXML group - http://jvoicexml.sourceforge.net/

Author:
Christoph Buente, Dirk Schnelle

Method Summary
 GrammarType getSupportedType()
          Returns the supported media type.
 GrammarType identify(GrammarDocument grammar)
          Identifies the grammar specified by grammar.
 

Method Detail

identify

GrammarType identify(GrammarDocument grammar)
Identifies the grammar specified by grammar. If grammar could be identified a type is returned, otherwise null.

Parameters:
grammar - The grammar to be identified.
Returns:
String the type of the grammar. If grammar could not be identified, null is returned.

getSupportedType

GrammarType getSupportedType()
Returns the supported media type.

Returns:
the supported media type.


Copyright © 2005-2007 JVoiceXML group.