Overview | Package | Class | Tree | Index | Help | |||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.speech.recognition.GrammarSyntaxDetail
GrammarException
. The grammar
may have been created programmatically or by loading a
Java Speech Grammar Format document. Multiple
GrammarSyntaxDetail
objects may be encapsulated
by a single GrammarException
.
Depending on the type of error and the context in which the error is identified, some or all of the following information may be provided:
URL
or Reader
, or through the
ruleForJSGF
method of the RuleGrammar
interface.
<NULL>
, <VOID>
).
commitChanges
method of a Recognizer
is called, it performs addition checks to ensure all loaded grammars are
legal. The following problems may be encountered:
Field Summary | |
int | charNumber
Character number in line in JSGF file for problem. |
URL | grammarLocation
URL location of grammar in which problem is encountered. |
String | grammarName
Name of grammar in which problem is encountered. |
RuleName | importName
Name in grammar import declaration in which problem is encountered. |
int | lineNumber
Line number in JSGF file for problem. |
String | message
Printable string describing problem. |
String | ruleName
Name of rule within grammar in which problem is encountered. |
Constructor Summary | |
GrammarSyntaxDetail()
Empty constructor. |
|
GrammarSyntaxDetail(String grammarName,
URL grammarLocation,
String ruleName,
RuleName importName,
int lineNumber,
int charNumber,
String message)
Complete constructor describing a syntax problem. |
Methods inherited from class java.lang.Object | |
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait |
Field Detail |
public String grammarName
null
.public URL grammarLocation
null
.public String ruleName
null
.public RuleName importName
null
.public int lineNumber
public int charNumber
public String message
null
.Constructor Detail |
public GrammarSyntaxDetail()
public GrammarSyntaxDetail(String grammarName, URL grammarLocation, String ruleName, RuleName importName, int lineNumber, int charNumber, String message)
Overview | Package | Class | Tree | Index | Help | |||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
JavaTM Speech API
Copyright 1997-1998 Sun Microsystems, Inc. All rights reserved
Send comments to javaspeech-comments@sun.com