public class Report
extends java.lang.Object
addError(int, String, MObject...)
and similar methods.
Note about the use of varargs
for the related MObject objects:
// To add objects obj1, obj2 and obj3, simply pass the objects to the addXXX() call addError(1001, "My formatted message with three related objects", obj1, obj2 obj3); // For 'no objects' , do not pass 'null' but rather pass nothing addError(1001, "My formatted message with no related objects");
Constructor and Description |
---|
Report(java.lang.String title) |
Modifier and Type | Method and Description |
---|---|
void |
addError(int code,
java.lang.String message,
MObject... mObjects)
Adds an ERROR message to the Report.
|
void |
addError(int code,
java.lang.String category,
java.lang.String message,
MObject... mObjects)
Adds an ERROR message to the Report.
|
void |
addError(int code,
java.lang.String category,
java.lang.String helpUrl,
java.lang.String message,
MObject... mObjects)
Adds an ERROR message to the Report.
|
void |
addInfo(java.lang.String message)
Adds an INFO message to the Report.
|
void |
addTip(int code,
java.lang.String message,
MObject... mObjects)
Adds an TIP message to the Report.
|
void |
addTip(int code,
java.lang.String category,
java.lang.String message,
MObject... mObjects)
Adds an TIP message to the Report.
|
void |
addTip(int code,
java.lang.String category,
java.lang.String helpUrl,
java.lang.String message,
MObject... mObjects)
Adds an TIP message to the Report.
|
void |
addWarning(int code,
java.lang.String message,
MObject... mObjects)
Adds an WARNING message to the Report.
|
void |
addWarning(int code,
java.lang.String category,
java.lang.String message,
MObject... mObjects)
Adds an WARNING message to the Report.
|
void |
addWarning(int code,
java.lang.String category,
java.lang.String helpUrl,
java.lang.String message,
MObject... mObjects)
Adds an WARNING message to the Report.
|
java.util.List<ReportEntry> |
getEntries() |
java.lang.String |
getTitle() |
public void addError(int code, java.lang.String message, MObject... mObjects)
code
- - the message code (mandatory)message
- - the formatted message, with I18n and parameter substitution already done.mObjects
- - the model elements related to this entry. By convention the first one is the 'main' element where the error occured or was detected.public void addWarning(int code, java.lang.String message, MObject... mObjects)
code
- - the message code (mandatory)message
- - the formatted message, with I18n and parameter substitution already done.mObjects
- - the model elements related to this entry. By convention the first one is the 'main' element where the warning occured or was detected.public void addInfo(java.lang.String message)
message
- - the formatted message, with I18n and parameter substitution already done.public java.util.List<ReportEntry> getEntries()
public java.lang.String getTitle()
public void addTip(int code, java.lang.String message, MObject... mObjects)
code
- - the message code (mandatory)message
- - the formatted message, with I18n and parameter substitution already done.mObjects
- - the model elements related to this entry. By convention the first one is the 'main' element where the tip was identified.public void addError(int code, java.lang.String category, java.lang.String message, MObject... mObjects)
code
- - the message code (mandatory)category
- - the message category (may be null
)message
- - the formatted message, with I18n and parameter substitution already done.mObjects
- - the model elements related to this entry. By convention the first one is the 'main' element where the error occured or was detected.public void addError(int code, java.lang.String category, java.lang.String helpUrl, java.lang.String message, MObject... mObjects)
code
- - the message code (mandatory)category
- - the message category (may be null
)helpUrl
- - the message help topic in the Modelio Help (may be null
)message
- - the formatted message, with I18n and parameter substitution already done.mObjects
- - the model elements related to this entry. By convention the first one is the 'main' element where the error occured or was detected.public void addWarning(int code, java.lang.String category, java.lang.String message, MObject... mObjects)
code
- - the message code (mandatory)category
- - the message category (may be null
)message
- - the formatted message, with I18n and parameter substitution already done.mObjects
- - the model elements related to this entry. By convention the first one is the 'main' element where the warning occured or was detected.public void addWarning(int code, java.lang.String category, java.lang.String helpUrl, java.lang.String message, MObject... mObjects)
code
- - the message code (mandatory)category
- - the message category (may be null
)helpUrl
- - the message help topic in the Modelio Help (may be null
)message
- - the formatted message, with I18n and parameter substitution already done.mObjects
- - the model elements related to this entry. By convention the first one is the 'main' element where the warning occured or was detected.public void addTip(int code, java.lang.String category, java.lang.String message, MObject... mObjects)
code
- - the message code (mandatory)category
- - the message category (may be null
)message
- - the formatted message, with I18n and parameter substitution already done.mObjects
- - the model elements related to this entry. By convention the first one is the 'main' element where the tip was identified.public void addTip(int code, java.lang.String category, java.lang.String helpUrl, java.lang.String message, MObject... mObjects)
code
- - the message code (mandatory)category
- - the message category (may be null
)helpUrl
- - the message help topic in the Modelio Help (may be null
)message
- - the formatted message, with I18n and parameter substitution already done.mObjects
- - the model elements related to this entry. By convention the first one is the 'main' element where the tip was identified.