org.jvoicexml.interpreter.grammar
Class JVoiceXmlGrammarRegistry

java.lang.Object
  extended by org.jvoicexml.interpreter.grammar.JVoiceXmlGrammarRegistry
All Implemented Interfaces:
GrammarRegistry

public final class JVoiceXmlGrammarRegistry
extends Object
implements GrammarRegistry

Implementation of a GrammarRegistry.

Since:
0.3

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

Version:
$Revision: 234 $
Author:
Dirk Schnelle

Constructor Summary
JVoiceXmlGrammarRegistry(VoiceXmlInterpreterContext context)
          Constructs a new object.
 
Method Summary
 void addGrammar(GrammarImplementation<? extends Object> grammar)
          Adds the given grammar to the list of known grammars.
 Collection<GrammarImplementation<? extends Object>> getGrammars()
          Gets all registered grammars.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JVoiceXmlGrammarRegistry

public JVoiceXmlGrammarRegistry(VoiceXmlInterpreterContext context)
Constructs a new object.

Parameters:
context - The current VoiceXML interpreter context.
Method Detail

addGrammar

public void addGrammar(GrammarImplementation<? extends Object> grammar)
Adds the given grammar to the list of known grammars.

Specified by:
addGrammar in interface GrammarRegistry
Parameters:
grammar - grammar to add.

getGrammars

public Collection<GrammarImplementation<? extends Object>> getGrammars()
Gets all registered grammars.

Specified by:
getGrammars in interface GrammarRegistry
Returns:
Collection


Copyright © 2005-2007 JVoiceXML group.