|
JSAPI 2.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectRuleComponent
RuleLocale
public class RuleLocale
Defines the SpeechLocale
for the enclosed RuleComponent
.
A RuleGrammar
is defined with a SpeechLocale
, but this may be
changed for RuleComponent
s within the RuleGrammar
.
RuleGrammar
,
SpeechLocale
Constructor Summary | |
---|---|
RuleLocale(RuleComponent ruleComponent,
SpeechLocale locale)
Constructs a RuleLocale specifying the SpeechLocale
for the RuleComponent . |
Method Summary | |
---|---|
RuleComponent |
getRuleComponent()
Returns the RuleComponent to which the SpeechLocale applies. |
SpeechLocale |
getSpeechLocale()
Returns the SpeechLocale for this RuleLocale . |
String |
toString()
Returns a String representing this RuleComponent
as grammar text. |
Methods inherited from class Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RuleLocale(RuleComponent ruleComponent, SpeechLocale locale)
RuleLocale
specifying the SpeechLocale
for the RuleComponent
.
This affects interpretation of vocabulary within
the RuleComponent
.
When used within a containing RuleGrammar
,
a GRAMMAR_CHANGES_REJECTED
event will be fired if the
locale
is not supported.
ruleComponent
- the RuleComponent
to which
the SpeechLocale
applieslocale
- the SpeechLocale
to usegetRuleComponent
,
getSpeechLocale
,
GRAMMAR_CHANGES_REJECTED
,
RuleGrammar
Method Detail |
---|
public SpeechLocale getSpeechLocale()
SpeechLocale
for this RuleLocale
.
SpeechLocale
for this RuleLocale
getRuleComponent
public RuleComponent getRuleComponent()
RuleComponent
to which the SpeechLocale
applies.
RuleComponent
to which the SpeechLocale
applies.getSpeechLocale
public String toString()
String
representing this RuleComponent
as grammar text.
The String
represents a portion of a grammar that could appear
on the right hand side of a Rule
definition.
toString
in class RuleComponent
String
representing grammar text.RuleComponent
,
Rule
|
JSAPI 2.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
JavaTM Speech API 2.0,
Final Release v2.0.6.
© 2008, Conversay and Sun Microsystems.