public class VerificationListener extends AbstractRDFHandler implements ParseErrorListener
Constructor and Description |
---|
VerificationListener(ConsoleIO consoleIO)
Constructor
|
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.
|
int |
getErrors()
Get number of errors
|
int |
getStatements()
Get number of statements
|
int |
getWarnings()
Get number of warnings
|
void |
handleStatement(Statement statement)
Handles a statement.
|
void |
warning(String msg,
long lineNo,
long colNo)
Reports a warning from the parser.
|
endRDF, handleComment, handleNamespace, startRDF
public VerificationListener(ConsoleIO consoleIO)
consoleIO
- public int getWarnings()
public int getErrors()
public int getStatements()
public void handleStatement(Statement statement) throws RDFHandlerException
RDFHandler
handleStatement
in interface RDFHandler
handleStatement
in class AbstractRDFHandler
statement
- The statement.RDFHandlerException
- If the RDF handler has encountered an unrecoverable error.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.Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.