|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.japisoft.xmlpad.error.ErrorManager
Here a class for storing/processing errors
Field Summary | |
static java.lang.String |
ON_THE_FLY_PARSING_CONTEXT
|
Constructor Summary | |
ErrorManager()
|
Method Summary | |
void |
addErrorListener(ErrorListener listener)
Add a new listener for onTheFly or full parsing error |
void |
dispose()
|
void |
flushLastError()
Eliminate any trace of the last error. |
boolean |
hasLastError()
|
boolean |
hasLastErrorOnTheFly()
|
void |
initErrorProcessing()
Inform all the listeners, that some error reporting is beginning |
void |
notifyError(java.lang.Object context,
boolean localError,
java.lang.String sourceLocation,
int line,
int column,
int offset,
java.lang.String message,
boolean onTheFly)
Inform all the listeners. |
void |
notifyError(java.lang.String message)
Here a shortcut for sending a single error message |
void |
notifyError(java.lang.String message,
int line)
Here a shortcut for sending a single error message at the following line |
void |
notifyNoError(boolean onTheFly)
Inform all the listeners |
void |
notifyUniqueError(boolean localError,
java.lang.String sourceLocation,
int line,
int column,
int offset,
java.lang.String message,
boolean onTheFly)
Notify only one error. |
void |
removeErrorListener(ErrorListener listener)
|
void |
stopErrorProcessing()
Inform all the listeners, that no more error reporting will be done |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String ON_THE_FLY_PARSING_CONTEXT
Constructor Detail |
public ErrorManager()
Method Detail |
public void addErrorListener(ErrorListener listener)
public void removeErrorListener(ErrorListener listener)
public void initErrorProcessing()
initErrorProcessing
in interface ErrorListener
public void stopErrorProcessing()
stopErrorProcessing
in interface ErrorListener
public void notifyError(java.lang.String message)
public void notifyError(java.lang.String message, int line)
public void notifyError(java.lang.Object context, boolean localError, java.lang.String sourceLocation, int line, int column, int offset, java.lang.String message, boolean onTheFly)
stopErrorProcessing
method.
notifyError
in interface ErrorListener
context
- the error context, it can be null
and may be ignoredlocalError
- 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 locationline
- The error linecolumn
- The error columnoffset
- The error offsetmessage
- The error messageonTheFly
- Flag for informing if this is while the user inserts or nopublic void notifyUniqueError(boolean localError, java.lang.String sourceLocation, int line, int column, int offset, java.lang.String message, boolean onTheFly)
localError
- sourceLocation
- line
- column
- offset
- message
- onTheFly
- public void notifyNoError(boolean onTheFly)
notifyNoError
in interface ErrorListener
onTheFly
- for informing if this is while inserting characterspublic void flushLastError()
public boolean hasLastError()
true
if an error existspublic boolean hasLastErrorOnTheFly()
true
if the last error is due to an onthefly problempublic void dispose()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |