|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openmdx.kernel.application.configuration.Report
public class Report
This class holds the results from a configuration verification/validation.
| Field Summary | |
|---|---|
protected List |
reports
verification reports |
protected boolean |
success
validation/verification state |
protected boolean |
warning
validation/verification state |
| Constructor Summary | |
|---|---|
Report(String name,
VersionNumber version,
String context)
Creates a new validation report object. |
|
| Method Summary | |
|---|---|
void |
addAll(Report report)
Include the contents of another report. |
void |
addError(String message)
Report an error. |
void |
addError(String report,
Throwable cause)
Report an error including its cause. |
void |
addInfo(String message)
Report an information. |
void |
addWarning(String message)
Report a warning. |
void |
addWarning(String message,
Throwable cause)
Report a warning including its cause. |
String |
getContext()
Returns the configuration context. |
String |
getName()
Returns the configuration name. |
VersionNumber |
getVersion()
Returns the configuration's version. |
boolean |
hasWarning()
Returns validation result. |
boolean |
isSuccess()
Returns validation result. |
String |
toString()
Returns a string representation of the report. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected boolean success
protected boolean warning
protected final List reports
| Constructor Detail |
|---|
public Report(String name,
VersionNumber version,
String context)
name - The name of this configurationcontext - The name of the contextmajorVersion - The major version of the configuration [0,1,2,..]minorVersion - The minor version of the configuration [0,1,2,..]| Method Detail |
|---|
public boolean isSuccess()
addError(java.lang.String),
addError(java.lang.String,java.lang.Throwable)public boolean hasWarning()
addWarning(java.lang.String),
addWarning(java.lang.String,java.lang.Throwable)public void addError(String message)
E.g.:
public void addError(String report,
Throwable cause)
report - cause - public void addWarning(String message)
public void addWarning(String message,
Throwable cause)
message - cause - public void addInfo(String message)
public void addAll(Report report)
report - public String getName()
public String getContext()
public VersionNumber getVersion()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||