Build 1.0_r1(from source)

android.speech.recognition.impl
Class EmbeddedGrammarImpl

java.lang.Object
  extended by android.speech.recognition.impl.GrammarImpl
      extended by android.speech.recognition.impl.EmbeddedGrammarImpl
All Implemented Interfaces:
EmbeddedGrammar, Grammar, Runnable
Direct Known Subclasses:
SrecGrammarImpl

public class EmbeddedGrammarImpl
extends GrammarImpl
implements EmbeddedGrammar


Field Summary
 
Fields inherited from class android.speech.recognition.impl.GrammarImpl
nativeObject
 
Constructor Summary
EmbeddedGrammarImpl(long nativeObject)
          Creates a new EmbeddedGrammarImpl.
 
Method Summary
 void compileAllSlots()
          Compiles items that were added to any of the grammar slots.
 void resetAllSlots()
          Removes all words added to all slots.
 void save(String url)
          Saves the compiled grammar.
 
Methods inherited from class android.speech.recognition.impl.GrammarImpl
dispose, finalize, getNativeObject, load, run, unload
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface android.speech.recognition.Grammar
dispose, load, unload
 

Constructor Detail

EmbeddedGrammarImpl

public EmbeddedGrammarImpl(long nativeObject)
Creates a new EmbeddedGrammarImpl.

Parameters:
nativeObject - a reference to the native object
Method Detail

compileAllSlots

public void compileAllSlots()
Description copied from interface: EmbeddedGrammar
Compiles items that were added to any of the grammar slots.

Specified by:
compileAllSlots in interface EmbeddedGrammar

resetAllSlots

public void resetAllSlots()
Description copied from interface: EmbeddedGrammar
Removes all words added to all slots.

Specified by:
resetAllSlots in interface EmbeddedGrammar

save

public void save(String url)
Description copied from interface: EmbeddedGrammar
Saves the compiled grammar.

Specified by:
save in interface EmbeddedGrammar
Parameters:
url - the url to save the grammar to

Build 1.0_r1(from source)

Please submit a feedback, bug or feature