android.speech.recognition.WordItem Class Reference

Inheritance diagram for android.speech.recognition.WordItem:

Inheritance graph
[legend]
Collaboration diagram for android.speech.recognition.WordItem:

Collaboration graph
[legend]

List of all members.


Detailed Description

Word that may be inserted into an embedded grammar slot.

Author:
Gili Tzabari, Marc Robitaille

Public Member Functions

virtual bool isWord () const
virtual bool isVoicetag () const

Static Public Member Functions

static WordItemProxy create (const char *word, const char **pronunciations, ARRAY_LIMIT pronunciationCount, ReturnCode::Type &returnCode)
static WordItemProxy create (const char *word, const char *pronunciation, ReturnCode::Type &returnCode)

Protected Member Functions

 WordItem ()
virtual ~WordItem ()

Friends

class WordItemProxy
class android::speech::recognition::srec::SrecGrammarImpl
class SlotItemProxy

Constructor & Destructor Documentation

android.speech.recognition.WordItem.WordItem (  )  [protected]

Prevent construction.

virtual android.speech.recognition.WordItem.~WordItem (  )  [protected, virtual]

Prevent destruction.


Member Function Documentation

static WordItemProxy android.speech.recognition.WordItem.create ( const char *  word,
const char **  pronunciations,
ARRAY_LIMIT  pronunciationCount,
ReturnCode::Type returnCode 
) [static]

Creates a new WordItem.

Parameters:
word the word to insert
pronunciations the pronunciations to associated with the item. If the list is is empty the recognizer will attempt to guess the pronunciations.
pronunciationCount the number of pronunciations
returnCode the return code

static WordItemProxy android.speech.recognition.WordItem.create ( const char *  word,
const char *  pronunciation,
ReturnCode::Type returnCode 
) [static]

Creates a new WordItem. This convenience method is equivilent to invoking create(word, pronunciations, pronunciationCount, returnCode) with a single proununciation.

Parameters:
word the word to insert
pronunciation the pronunciation to associated with the item. If the value is null the recognizer will attempt to guess the pronunciation.
returnCode the return code

virtual bool android.speech.recognition.WordItem.isWord (  )  const [virtual]

Returns true if the item is a word.

Implements android.speech.recognition.SlotItem.

virtual bool android.speech.recognition.WordItem.isVoicetag (  )  const [virtual]

Returns true if the item is a voicetag.

Implements android.speech.recognition.SlotItem.


Generated on Thu May 1 17:16:53 2008 for UAPI by  doxygen 1.5.3