public interface IConstraint
Modifier and Type | Field and Description |
---|---|
static int |
ERROR
The error.
|
static int |
INFO
The info.
|
static int |
WARNING
The warning.
|
Modifier and Type | Method and Description |
---|---|
org.eclipse.core.runtime.IStatus |
check(org.eclipse.emf.common.notify.Notification notification)
Checks the constraints against the
Notification . |
java.lang.String |
getMessage()
Gets the message.
|
java.lang.String |
getName()
Gets the name.
|
int |
getSeverity()
Gets the severity.
|
org.eclipse.core.runtime.IStatus |
getStatus()
Gets the status.
|
void |
setMessage(java.lang.String message)
Sets the message.
|
void |
setName(java.lang.String name)
Sets the name.
|
void |
setSeverity(int severity)
Sets the severity.
|
void |
setStatus(int severity,
java.lang.String message)
Sets the status (see
IStatus ). |
void |
showUserNotification()
Utility method to show to the user the constraint message in case of failure.
|
static final int WARNING
static final int ERROR
static final int INFO
java.lang.String getName()
void setName(java.lang.String name)
name
- the name of the constraintint getSeverity()
IStatus
constants for a list of severitiesvoid setSeverity(int severity)
severity
- the severity level to be setjava.lang.String getMessage()
void setMessage(java.lang.String message)
message
- the message of the constraint to be setvoid showUserNotification()
org.eclipse.core.runtime.IStatus getStatus()
IStatus
void setStatus(int severity, java.lang.String message)
IStatus
).severity
- the severity of the IStatusmessage
- the message of the IStatusorg.eclipse.core.runtime.IStatus check(org.eclipse.emf.common.notify.Notification notification)
Notification
.notification
- the notification to be checked againstIStatus