Package de.uka.ipd.sdq.errorhandling
Class SeverityAndIssue
java.lang.Object
de.uka.ipd.sdq.errorhandling.SeverityAndIssue
- All Implemented Interfaces:
Comparable<SeverityAndIssue>
Issue combined with a severity level. Used to record and report issues to the user using the
IssuesDialog
.-
Constructor Summary
ConstructorDescriptionSeverityAndIssue
(SeverityEnum error, String message, Object element, String objectResourceName) Create a new instance.SeverityAndIssue
(SeverityEnum error, String message, EObject element) Create a new instance. -
Method Summary
Modifier and TypeMethodDescriptionint
May be null.getError()
Return the resource name or an empty String if thisSeverityAndIssue
has no element.
-
Constructor Details
-
SeverityAndIssue
Create a new instance.- Parameters:
error
- Severity of the issue.message
- Description of the issue.element
- Element causing the issue (if applicable).
-
SeverityAndIssue
public SeverityAndIssue(SeverityEnum error, String message, Object element, String objectResourceName) Create a new instance.- Parameters:
error
- Severity of the issue.message
- Description of the issue.element
- Element causing the issue (if applicable).objectResourceName
- Name of the resource containing the object (if the element is not anEObject
).
-
-
Method Details
-
getMessage
- Returns:
- The issue message.
-
getDetails
- Returns:
- Details on the issue's message.
-
getElement
May be null.- Returns:
- The Object or null.
-
getResourceName
Return the resource name or an empty String if thisSeverityAndIssue
has no element.- Returns:
-
getError
-
compareTo
- Specified by:
compareTo
in interfaceComparable<SeverityAndIssue>
-