org.jvoicexml.implementation.jsapi10
Class RuleGrammarImplementation

java.lang.Object
  extended by org.jvoicexml.implementation.jsapi10.RuleGrammarImplementation
All Implemented Interfaces:
GrammarImplementation<RuleGrammar>

public final class RuleGrammarImplementation
extends Object
implements GrammarImplementation<RuleGrammar>

Implementation of a JSGF grammar.

Since:
0.5.5
Version:
$Revision: 213 $

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

Author:
Dirk Schnelle

Constructor Summary
RuleGrammarImplementation(RuleGrammar ruleGrammar)
          Constructs a new object.
 
Method Summary
 RuleGrammar 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuleGrammarImplementation

public RuleGrammarImplementation(RuleGrammar ruleGrammar)
Constructs a new object.

Parameters:
ruleGrammar - the grammar.
Method Detail

getGrammar

public RuleGrammar getGrammar()
Retrieves the grammar object.

Specified by:
getGrammar in interface GrammarImplementation<RuleGrammar>
Returns:
the grammar.

getMediaType

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

Specified by:
getMediaType in interface GrammarImplementation<RuleGrammar>
Returns:
The media type of the grammar file.

getName

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

Grammars are distinguished by their name.

Specified by:
getName in interface GrammarImplementation<RuleGrammar>
Returns:
name of the grammar.


Copyright © 2005-2007 JVoiceXML group.