Build 1.0_r1(from source)

Class SrecGrammar.Item

  extended by android.speech.recognition.SrecGrammar.Item
Enclosing interface:

public static class SrecGrammar.Item
extends Object

SrecGrammar Item

Field Summary
 SlotItem _item
 String _semanticMeaning
 int _weight
Constructor Summary
SrecGrammar.Item(SlotItem item, int weight, String semanticMeaning)
          Creates a grammar item.
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail


public SlotItem _item


public int _weight


public String _semanticMeaning
Constructor Detail


public SrecGrammar.Item(SlotItem item,
                        int weight,
                        String semanticMeaning)
                 throws IllegalArgumentException
Creates a grammar item.

item - the Slotitem.
weight - the weight of the item. Smaller values are more likely to get recognized. This should be >= 0.
semanticMeaning - the value that will be returned if this item is recognized.
IllegalArgumentException - if item or semanticMeaning are null; if semanticMeaning is empty."

Build 1.0_r1(from source)

Please submit a feedback, bug or feature