org.deri.wsmo4j.io.parser.rdf
Class RDFParseErrorListener

java.lang.Object
  extended by org.deri.wsmo4j.io.parser.rdf.RDFParseErrorListener
All Implemented Interfaces:
org.openrdf.rio.ParseErrorListener

public class RDFParseErrorListener
extends Object
implements org.openrdf.rio.ParseErrorListener

Implementation of an interface defining methods for receiving warning and error messages from an RDF parser.

  Created on May 02, 2006
  Committed by $Author: morcen $
  $Source$
 

Version:
$Revision: 1946 $ $Date: 2007-04-02 15:13:28 +0300 (Mon, 02 Apr 2007) $
Author:
nathalie.steinmetz@deri.org

Constructor Summary
RDFParseErrorListener(List<RDFParserWarning> warnings, List<RDFParserError> errors)
           
 
Method Summary
 void error(String msg, int lineNo, int colNo)
          All errors that occur during the parsing or the transformation to a WSMO object model are collected in a List of erros.
 void fatalError(String msg, int lineNo, int colNo)
           
 void warning(String msg, int lineNo, int colNo)
          All warnings that occur during the parsing or the transformation to a WSMO object model are collected in a List of warnings.
 void warning(String msg, int lineNo, int colNo, org.openrdf.model.Statement statement)
          All warnings that occur during the parsing or the transformation to a WSMO object model are collected in a List of warnings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RDFParseErrorListener

public RDFParseErrorListener(List<RDFParserWarning> warnings,
                             List<RDFParserError> errors)
Method Detail

warning

public void warning(String msg,
                    int lineNo,
                    int colNo)
All warnings that occur during the parsing or the transformation to a WSMO object model are collected in a List of warnings.

Specified by:
warning in interface org.openrdf.rio.ParseErrorListener
Parameters:
msg - 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
See Also:
ParseErrorListener.warning(java.lang.String, int, int), warning(String msg, int lineNo, int colNo, Statement statement)

warning

public void warning(String msg,
                    int lineNo,
                    int colNo,
                    org.openrdf.model.Statement statement)
All warnings that occur during the parsing or the transformation to a WSMO object model are collected in a List of warnings. All statements that are concerned by one type of warning are put into a Set of triples belonging to this warning.

Parameters:
msg - 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
statement - the RDF triple that is concerned by this warning

error

public void error(String msg,
                  int lineNo,
                  int colNo)
All errors that occur during the parsing or the transformation to a WSMO object model are collected in a List of erros.

Specified by:
error in interface org.openrdf.rio.ParseErrorListener
Parameters:
msg - 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
See Also:
ParseErrorListener.error(java.lang.String, int, int)

fatalError

public void fatalError(String msg,
                       int lineNo,
                       int colNo)
Specified by:
fatalError in interface org.openrdf.rio.ParseErrorListener
Parameters:
msg - fatal error message
lineNo - a line number related to the fatalError, or -1 if not available or applicable
colNo - a column number related to the fatalError, or -1 if not available or applicable
See Also:
ParseErrorListener.fatalError(java.lang.String, int, int)


Copyright © 2004-2008 Ontotext Lab.. All Rights Reserved.