Build 1.0_r1(from source)

android.speech.recognition.impl
Class EntryImpl

java.lang.Object
  extended by android.speech.recognition.impl.EntryImpl
All Implemented Interfaces:
NBestRecognitionResult.Entry, Runnable

public class EntryImpl
extends Object
implements NBestRecognitionResult.Entry, Runnable


Constructor Summary
EntryImpl(long nativeObject)
          This implementation is a work-around to solve Q bug with nested classes.
 
Method Summary
protected  void finalize()
          Called by the virtual machine when there are no longer any (non-weak) references to the receiver.
 String get(String key)
          Returns the value associated with the specified key.
 byte getConfidenceScore()
          The confidence score of a recognition result.
 String getLiteralMeaning()
          Returns the literal meaning of a recognition result (i.e. literally what the user said).
 String getSemanticMeaning()
          Returns the semantic meaning of a recognition result (i.e. the application-specific value associated with what the user said).
 Enumeration keys()
          Returns an enumeration of the keys in this Entry.
 void run()
          Begin doing the active part of the class' code.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntryImpl

public EntryImpl(long nativeObject)
This implementation is a work-around to solve Q bug with nested classes.

Parameters:
nativeObject - the native NBestRecognitionResult.Entry object
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

getConfidenceScore

public byte getConfidenceScore()
                        throws IllegalStateException
Description copied from interface: NBestRecognitionResult.Entry
The confidence score of a recognition result. Values range from 0 to 100 (inclusive).

Specified by:
getConfidenceScore in interface NBestRecognitionResult.Entry
Returns:
the confidence score of a recognition result.
Throws:
IllegalStateException - if the object has been disposed

getLiteralMeaning

public String getLiteralMeaning()
                         throws IllegalStateException
Description copied from interface: NBestRecognitionResult.Entry
Returns the literal meaning of a recognition result (i.e. literally what the user said). In an example where a person's name is mapped to a phone-number, the person's name is the literal meaning.

Specified by:
getLiteralMeaning in interface NBestRecognitionResult.Entry
Returns:
the literal meaning of a recognition result.
Throws:
IllegalStateException - if the object has been disposed

getSemanticMeaning

public String getSemanticMeaning()
                          throws IllegalStateException
Description copied from interface: NBestRecognitionResult.Entry
Returns the semantic meaning of a recognition result (i.e. the application-specific value associated with what the user said). In an example where a person's name is mapped to a phone-number, the phone-number is the semantic meaning.

Specified by:
getSemanticMeaning in interface NBestRecognitionResult.Entry
Returns:
the semantic meaning of a recognition result.
Throws:
IllegalStateException - if the object has been disposed

get

public String get(String key)
Description copied from interface: NBestRecognitionResult.Entry
Returns the value associated with the specified key.

Specified by:
get in interface NBestRecognitionResult.Entry
Parameters:
key - the key to look up
Returns:
the associated value or null if this entry does not contain any mapping for the key

keys

public Enumeration keys()
Description copied from interface: NBestRecognitionResult.Entry
Returns an enumeration of the keys in this Entry.

Specified by:
keys in interface NBestRecognitionResult.Entry
Returns:
an enumeration of the keys in this Entry.

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