|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.openrdf.sesame.admin.AdminMsgCollector
An implementation of the AdminListener interface that collects the reported messages and allows them to be checked after the performed action has (sucessfully or unsuccessfully) been completed.
| Constructor Summary | |
AdminMsgCollector()
Creates a new AdminMsgCollector object. |
|
| Method Summary | |
void |
error(String msg,
int lineNo,
int columnNo,
Statement stat)
An error message with optionally line and column number and the statement to indicate the source of the error. |
List |
getErrors()
Gets all collected error messages. |
List |
getMessages()
Gets all collected messages. |
List |
getNotifications()
Gets all collected notifications. |
List |
getWarnings()
Gets all collected warnings. |
boolean |
hasErrors()
Return true if any errors have been collected, false otherwise. |
boolean |
hasNotifications()
Return true if any notifications have been collected, false otherwise. |
boolean |
hasWarnings()
Return true if any warnings have been collected, false otherwise. |
void |
notification(String msg,
int lineNo,
int columnNo,
Statement stat)
A notification message (not an error) with optionally line and column number and the statement to indicate the source of the notification. |
void |
status(String msg,
int lineNo,
int columnNo)
A status message with optional line and column number to indicate progress. |
void |
transactionEnd()
Indicates the end of a transaction. |
void |
transactionStart()
Indicates the start of a transaction. |
void |
warning(String msg,
int lineNo,
int columnNo,
Statement stat)
A warning message with optionally line and column number and the statement to indicate the source of the warning. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AdminMsgCollector()
| Method Detail |
public List getMessages()
AdminMsgpublic boolean hasErrors()
public List getErrors()
AdminMsgpublic boolean hasWarnings()
public List getWarnings()
AdminMsgpublic boolean hasNotifications()
public List getNotifications()
AdminMsgpublic void transactionStart()
AdminListener
transactionStart in interface AdminListenerpublic void transactionEnd()
AdminListener
transactionEnd in interface AdminListener
public void status(String msg,
int lineNo,
int columnNo)
AdminListener
status in interface AdminListenermsg - The status message.lineNo - A line number, or -1 if unavailable or irrelevant.columnNo - A column number, or -1 if unavailable or irrelevant.
public void notification(String msg,
int lineNo,
int columnNo,
Statement stat)
AdminListener
notification in interface AdminListenermsg - The notification message.lineNo - A line number, or -1 if unavailable or irrelevant.columnNo - A column number, or -1 if unavailable or irrelevant.stat - The statement, or null if unavailable or
irrelevant.
public void warning(String msg,
int lineNo,
int columnNo,
Statement stat)
AdminListener
warning in interface AdminListenermsg - The warning message.lineNo - A line number, or -1 if unavailable or irrelevant.columnNo - A column number, or -1 if unavailable or irrelevant.stat - The statement, or null if unavailable or
irrelevant.
public void error(String msg,
int lineNo,
int columnNo,
Statement stat)
AdminListener
error in interface AdminListenermsg - The error message.lineNo - A line number, or -1 if unavailable or irrelevant.columnNo - A column number, or -1 if unavailable or irrelevant.stat - The statement, or null if unavailable or
irrelevant.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||