| ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface represents object responsible for diagnostic messages
handling. Diagnostic messages can be grouped by categories and for each
particular group one of three trace and assertion modes can be set.
| Method Summary | |
boolean | assert(String category, boolean condition, String message)Traces message according to mode set for category
if condition fails. |
int | getAssertMode(String category) |
int | getTraceMode(String category) |
boolean | isEnabled() |
void | setAssertMode(String category, int mode)Sets assertion mode for the category |
void | setTraceMode(String category, int mode)Sets trace mode for the category |
void | trace(String category, String message)Traces message according to mode set for category |
void | trace(String category, Throwable exception)Traces exception according to mode set for category |
| Method Detail |
public boolean assert(String category, boolean condition, String message)
message according to mode set for category
condition fails.public int getAssertMode(String category)
categorypublic int getTraceMode(String category)
categorypublic boolean isEnabled()
true if diagnostic messages are enabled by
public void setAssertMode(String category, int mode)
mode for the categorypublic void setTraceMode(String category, int mode)
mode for the categorypublic void trace(String category, String message)
message according to mode set for categorypublic void trace(String category, Throwable exception)
exception according to mode set for category
| ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||