|
JSAPI 2.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectRuleComponent
RuleSpecial
public class RuleSpecial
Defines special RuleReference
s defined as constants.
The special RuleReference
s
GARBAGE
, NULL
and VOID
may be used within
RuleGrammar
definitions as RuleComponent
s.
Special Rule
references for
SRGS
are
<ruleref special="GARBAGE" />
<ruleref special="NULL" />
<ruleref special="VOID" />
RuleGrammar
,
RuleReference
Field Summary | |
---|---|
static RuleSpecial |
GARBAGE
Special GARBAGE RuleComponent that may match
any speech up until the next RuleComponent match,
the next token, or until the end of spoken input. |
static RuleSpecial |
NULL
Special NULL RuleComponent that always matches. |
static RuleSpecial |
VOID
Special VOID RuleComponent that never matches. |
Method Summary | |
---|---|
String |
toString()
Returns a String representing this RuleComponent
as grammar text. |
Methods inherited from class Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final RuleSpecial GARBAGE
GARBAGE
RuleComponent
that may match
any speech up until the next RuleComponent
match,
the next token, or until the end of spoken input.
A RuleGrammar
processor must accept RuleGrammar
s
that contain GARBAGE
.
However, the behavior of GARBAGE
is implementation-specific.
A user agent should be capable of matching arbitrary spoken input up
to the next token, but may treat GARBAGE
as equivalent to
NULL
(match no spoken input).
NULL
,
VOID
,
RuleGrammar
public static final RuleSpecial NULL
NULL
RuleComponent
that always matches.
Unlike GARBAGE
, the match succeeds independent of speech input.
GARBAGE
,
VOID
public static final RuleSpecial VOID
VOID
RuleComponent
that never matches.
GARBAGE
,
NULL
Method Detail |
---|
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.