com.japisoft.xmlpad.error
Interface ErrorListener

All Known Subinterfaces:
ElementView, ErrorView
All Known Implementing Classes:
DefaultErrorView, ErrorManager, SchemaHelperManager, TableElementView, XMLEditor

public interface ErrorListener

Listener for XML parsing error. An error 'OnTheFly' means it can be a temporary error while the user is inserting characters.

Version:
1.0
Author:
(c) JAPISoft

Method Summary
 void initErrorProcessing()
          This is called once before checking the whole document
 void notifyError(java.lang.Object context, boolean localError, java.lang.String sourceLocation, int line, int col, int offset, java.lang.String message, boolean onTheFly)
          Notify an XML error found while parsing
 void notifyNoError(boolean onTheFly)
          Notify the document is correct
 void stopErrorProcessing()
          This is called once after checking the whole document
 

Method Detail

initErrorProcessing

public void initErrorProcessing()
This is called once before checking the whole document


stopErrorProcessing

public void stopErrorProcessing()
This is called once after checking the whole document


notifyError

public void notifyError(java.lang.Object context,
                        boolean localError,
                        java.lang.String sourceLocation,
                        int line,
                        int col,
                        int offset,
                        java.lang.String message,
                        boolean onTheFly)
Notify an XML error found while parsing

Parameters:
context - the error context, it can be null and may be ignored
localError - a flag for knowing if the error is inside the current document (sometimes this is inside a DTD or a W3C Schema)
sourceLocation - The document location
line - The error line
col - The error column
offset - The error offset
message - The error message
onTheFly - Flag for informing if this is while the user inserts or no

notifyNoError

public void notifyNoError(boolean onTheFly)
Notify the document is correct

Parameters:
onTheFly - for informing if this is while inserting characters


Copyright © 2006 JAPISoft. All Rights Reserved.