public class ParseErrorCollector extends Object implements ParseErrorListener
Constructor and Description |
---|
ParseErrorCollector() |
Modifier and Type | Method and Description |
---|---|
void |
error(String msg,
long lineNo,
long colNo)
Reports an error from the parser.
|
void |
fatalError(String msg,
long lineNo,
long colNo)
Reports a fatal error from the parser.
|
List<String> |
getErrors() |
List<String> |
getFatalErrors() |
List<String> |
getWarnings() |
void |
reset()
Resets the lists of warnings, errors and fatal errors.
|
void |
warning(String msg,
long lineNo,
long colNo)
Reports a warning from the parser.
|
public void warning(String msg, long lineNo, long colNo)
ParseErrorListener
warning
in interface ParseErrorListener
msg
- 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(String msg, long lineNo, long colNo)
ParseErrorListener
error
in interface ParseErrorListener
msg
- 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(String msg, long lineNo, long colNo)
ParseErrorListener
fatalError
in interface ParseErrorListener
msg
- 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 List<String> getWarnings()
ParseErrorListener.warning(String, long, long)
interface.public List<String> getErrors()
ParseErrorListener.error(String, long, long)
interface.public List<String> getFatalErrors()
ParseErrorListener.fatalError(String, long, long)
interface.public void reset()
Copyright © 2015-2022 Eclipse Foundation. All Rights Reserved.