public class ParseErrorCollector extends java.lang.Object implements ParseErrorListener
| Constructor and Description |
|---|
ParseErrorCollector() |
| Modifier and Type | Method and Description |
|---|---|
void |
error(java.lang.String msg,
int lineNo,
int colNo)
Reports an error from the parser.
|
void |
fatalError(java.lang.String msg,
int lineNo,
int colNo)
Reports a fatal error from the parser.
|
java.util.List<java.lang.String> |
getErrors() |
java.util.List<java.lang.String> |
getFatalErrors() |
java.util.List<java.lang.String> |
getWarnings() |
void |
reset()
Resets the lists of warnings, errors and fatal errors.
|
void |
warning(java.lang.String msg,
int lineNo,
int colNo)
Reports a warning from the parser.
|
public void warning(java.lang.String msg,
int lineNo,
int colNo)
ParseErrorListenerwarning in interface ParseErrorListenermsg - A warning message.lineNo - A line number related to the warning, or -1 if not
available or applicable.colNo - A column number related to the warning, or -1 if not
available or applicable.public void error(java.lang.String msg,
int lineNo,
int colNo)
ParseErrorListenererror in interface ParseErrorListenermsg - A error message.lineNo - A line number related to the error, or -1 if not
available or applicable.colNo - A column number related to the error, or -1 if not
available or applicable.RDFParser.setStopAtFirstError(boolean)public void fatalError(java.lang.String msg,
int lineNo,
int colNo)
ParseErrorListenerfatalError in interface ParseErrorListenermsg - A error message.lineNo - A line number related to the error, or -1 if not
available or applicable.colNo - A column number related to the error, or -1 if not
available or applicable.public java.util.List<java.lang.String> getWarnings()
ParseErrorListener.warning(String, int, int) interface.public java.util.List<java.lang.String> getErrors()
ParseErrorListener.error(String, int, int) interface.public java.util.List<java.lang.String> getFatalErrors()
ParseErrorListener.fatalError(String, int, int) interface.public void reset()
Copyright © 2001-2014 Aduna. All Rights Reserved.