org.jvoicexml
Interface GrammarImplementation<T>

Type Parameters:
T - the grammar implementation.
All Known Implementing Classes:
RuleGrammarImplementation

public interface GrammarImplementation<T>

Implementation of a grammar that is accessed by the VoiceXML interpreter.

VoiceXML is designed to support at least

Custom implementations must implement this interface to hook their own grammar specification.

Since:
0.5.5
Version:
$Revision: 222 $

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

Author:
Dirk Schnelle

Method Summary
 T getGrammar()
          Retrieves the grammar object.
 GrammarType getMediaType()
          Returns the declared media type of the external grammar.
 String getName()
          Retrieves the unique identifier for this grammar.
 

Method Detail

getMediaType

GrammarType getMediaType()
Returns the declared media type of the external grammar.

Returns:
The media type of the grammar file.

getGrammar

T getGrammar()
Retrieves the grammar object.

Returns:
the grammar.

getName

String getName()
Retrieves the unique identifier for this grammar.

Grammars are distinguished by their name.

Returns:
name of the grammar.


Copyright © 2005-2007 JVoiceXML group.