com.mkdoc.store
Class ImportListener

java.lang.Object
  |
  +--com.mkdoc.store.ImportListener
All Implemented Interfaces:
org.openrdf.sesame.admin.AdminListener

public class ImportListener
extends java.lang.Object
implements org.openrdf.sesame.admin.AdminListener

Store error statements for post-processing, draft.

Version:
0.1 2005-06-06
Author:
Philip Shaw

Field Summary
protected  java.util.List errors
          A list of error statements.
protected  java.util.List notices
          A list of notified statements.
protected  java.util.List warnings
          A list of statements with warnings.
 
Constructor Summary
ImportListener()
           
 
Method Summary
 void error(java.lang.String message, int lineNo, int columnNo, org.openrdf.model.Statement statement)
          Report an error.
 void notification(java.lang.String message, int lineNo, int columnNo, org.openrdf.model.Statement statement)
          Report a special notification.
 void status(java.lang.String message, int lineNo, int columnNo)
          Report current status.
 void transactionEnd()
          Report the end of the import.
 void transactionStart()
          Report the start of the import.
 void warning(java.lang.String message, int lineNo, int columnNo, org.openrdf.model.Statement statement)
          Report a warning.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

notices

protected java.util.List notices
A list of notified statements.

Since:
Version 0.1 2005-06-06

warnings

protected java.util.List warnings
A list of statements with warnings.

Since:
Version 0.1 2005-06-06

errors

protected java.util.List errors
A list of error statements.

Since:
Version 0.1 2005-06-06
Constructor Detail

ImportListener

public ImportListener()
Method Detail

transactionStart

public final void transactionStart()
Report the start of the import.

Specified by:
transactionStart in interface org.openrdf.sesame.admin.AdminListener
Since:
Version 0.1 2005-06-06

transactionEnd

public final void transactionEnd()
Report the end of the import.

Specified by:
transactionEnd in interface org.openrdf.sesame.admin.AdminListener
Since:
Version 0.1 2005-06-06

status

public final void status(java.lang.String message,
                         int lineNo,
                         int columnNo)
Report current status.

Specified by:
status in interface org.openrdf.sesame.admin.AdminListener
Parameters:
message - A status message reported during the import.
lineNo - The line number to which the status report relates.
columnNo - The column number to which the status report relates.
Since:
Version 0.1 2005-06-06

notification

public final void notification(java.lang.String message,
                               int lineNo,
                               int columnNo,
                               org.openrdf.model.Statement statement)
Report a special notification.

Specified by:
notification in interface org.openrdf.sesame.admin.AdminListener
Parameters:
message - A special notification message reported during the import.
lineNo - The line number to which the notification relates.
columnNo - The column number to which the notification relates.
statement - An RDF statement associated with the notification.
Since:
Version 0.1 2005-06-06

warning

public final void warning(java.lang.String message,
                          int lineNo,
                          int columnNo,
                          org.openrdf.model.Statement statement)
Report a warning.

Specified by:
warning in interface org.openrdf.sesame.admin.AdminListener
Parameters:
message - A warning message reported during the import.
lineNo - The line number to which the warning relates.
columnNo - The column number to which the warning relates.
statement - An RDF statement associated with the notification.
Since:
Version 0.1 2005-06-06

error

public final void error(java.lang.String message,
                        int lineNo,
                        int columnNo,
                        org.openrdf.model.Statement statement)
Report an error.

Specified by:
error in interface org.openrdf.sesame.admin.AdminListener
Parameters:
message - An error message reported during the import.
lineNo - The line number to which the error report relates.
columnNo - The column number to which the error report relates.
statement - An RDF statement associated with the notification.
Since:
Version 0.1 2005-06-06