Build 1.0_r1(from source)

android.speech.recognition.impl
Class WordItemImpl

java.lang.Object
  extended by android.speech.recognition.WordItem
      extended by android.speech.recognition.impl.WordItemImpl
All Implemented Interfaces:
SlotItem, Runnable

public class WordItemImpl
extends WordItem
implements Runnable


Method Summary
protected  void finalize()
          Called by the virtual machine when there are no longer any (non-weak) references to the receiver.
 long getNativeObject()
           
 void run()
          Begin doing the active part of the class' code.
static WordItemImpl valueOf(String word, String pronunciation)
          Creates a new WordItem.
static WordItemImpl valueOf(String word, String[] pronunciations)
          Creates a new WordItem.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

run

public void run()
Description copied from interface: Runnable
Begin doing the active part of the class' code.

Specified by:
run in interface Runnable

valueOf

public static WordItemImpl valueOf(String word,
                                   String[] pronunciations)
                            throws IllegalArgumentException
Creates a new WordItem.

Parameters:
word - the word to insert
pronunciations - the pronunciations to associated with the item. If the list is is empty (example:new String[0]) the recognizer will attempt to guess the pronunciations.
Returns:
the WordItem
Throws:
IllegalArgumentException - if word is null or if pronunciations is null or pronunciations contains an element equal to null or empty string.

valueOf

public static WordItemImpl valueOf(String word,
                                   String pronunciation)
                            throws IllegalArgumentException
Creates a new WordItem.

Parameters:
word - the word to insert
pronunciation - the pronunciation to associate with the item. If it is null the recognizer will attempt to guess the pronunciations.
Returns:
the WordItem
Throws:
IllegalArgumentException - if word is null or if pronunciation is an empty string

getNativeObject

public long getNativeObject()

finalize

protected void finalize()
                 throws Throwable
Description copied from class: Object
Called by the virtual machine when there are no longer any (non-weak) references to the receiver. Subclasses can use this facility to guarantee that any associated resources are cleaned up before the receiver is garbage collected. Uncaught exceptions which are thrown during the running of the method cause it to terminate immediately, but are otherwise ignored.

Note: The virtual machine assumes that the implementation in class Object is empty.

Overrides:
finalize in class Object
Throws:
Throwable - The virtual machine ignores any exceptions which are thrown during finalization.

Build 1.0_r1(from source)

Please submit a feedback, bug or feature