Class VerificationListener

  • All Implemented Interfaces:
    org.eclipse.rdf4j.rio.ParseErrorListener, org.eclipse.rdf4j.rio.RDFHandler

    public class VerificationListener
    extends org.eclipse.rdf4j.rio.helpers.AbstractRDFHandler
    implements org.eclipse.rdf4j.rio.ParseErrorListener
    Listen to parser errors and warnings
    Author:
    Dale Visser
    • Constructor Detail

      • VerificationListener

        public VerificationListener​(ConsoleIO consoleIO)
        Constructor
        Parameters:
        consoleIO -
    • Method Detail

      • getWarnings

        public int getWarnings()
        Get number of warnings
        Returns:
        number of warnings
      • getErrors

        public int getErrors()
        Get number of errors
        Returns:
        number of errors
      • getStatements

        public int getStatements()
        Get number of statements
        Returns:
        number of statements
      • handleStatement

        public void handleStatement​(org.eclipse.rdf4j.model.Statement statement)
                             throws org.eclipse.rdf4j.rio.RDFHandlerException
        Specified by:
        handleStatement in interface org.eclipse.rdf4j.rio.RDFHandler
        Overrides:
        handleStatement in class org.eclipse.rdf4j.rio.helpers.AbstractRDFHandler
        Throws:
        org.eclipse.rdf4j.rio.RDFHandlerException
      • warning

        public void warning​(String msg,
                            long lineNo,
                            long colNo)
        Specified by:
        warning in interface org.eclipse.rdf4j.rio.ParseErrorListener
      • error

        public void error​(String msg,
                          long lineNo,
                          long colNo)
        Specified by:
        error in interface org.eclipse.rdf4j.rio.ParseErrorListener
      • fatalError

        public void fatalError​(String msg,
                               long lineNo,
                               long colNo)
        Specified by:
        fatalError in interface org.eclipse.rdf4j.rio.ParseErrorListener