|
Gephi Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gephi.io.importer.api.Report
public final class Report
Report is a log and issue container. Filled with information, details, minor or major issues, it is stored in an issue list and can be retrieved to present issues to end-users. Behavior is the same as a simple logging library.
Constructor Summary | |
---|---|
Report()
|
Method Summary | |
---|---|
void |
append(Report report)
|
Issue.Level |
getExceptionLevel()
Get the current exception level for the report. |
java.lang.String |
getHtml()
Returns the report logs and issues, presented as HTML code. |
java.util.List<Issue> |
getIssues()
Returns all issues written in the report. |
java.lang.String |
getText()
Returns the report logs and issues, presented as basic multi-line text. |
void |
log(java.lang.String message)
Log an information message in the report. |
void |
logIssue(Issue issue)
Log an issue in the report. |
void |
setExceptionLevel(Issue.Level exceptionLevel)
Set the level of exception for the report. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Report()
Method Detail |
---|
public void log(java.lang.String message)
message
- the message to write in the report
java.lang.NullPointerException
- if message
is null
public void append(Report report)
public void logIssue(Issue issue)
issue
- the issue to write in the report
java.lang.NullPointerException
- if issue
is null
public java.util.List<Issue> getIssues()
public java.lang.String getHtml()
public java.lang.String getText()
public Issue.Level getExceptionLevel()
Level.CRITICAL
.
public void setExceptionLevel(Issue.Level exceptionLevel)
exceptionLevel
, an exception is thrown. Default is Level.CRITICAL
exceptionLevel
- the exception level where exceptions are to be thrown
|
Gephi Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |