Modifier and Type | Interface and Description |
---|---|
static class |
IStatus.Severity
The severity of the status.
|
Modifier and Type | Field and Description |
---|---|
static IStatus |
CANCEL
A constant for cancel status.
|
static IStatus |
ERROR
A constant for error status.
|
static IStatus |
OK
A constant for ok status.
|
static String |
PROP_CREATOR
Class that created the message.
|
static String |
PROP_FIELD_I18N_KEY
I18nKey of the field.
|
static String |
PROP_FIELD_ID
The id of the field.
|
static String |
PROP_JAVAX_CONSTRAINT
javax constraint if created by bean validation.
|
static String |
PROP_JAVAX_LEAF_BEAN
leaf bean if created by bean validation.
|
static String |
PROP_JAVAX_PROPERTY_PATH
property path if created by bean validation.
|
static String |
PROP_UI_APPLICATION_ID
The id of the affected application.
|
Modifier and Type | Method and Description |
---|---|
boolean |
containsProperty(String key)
Returns true, if a property exists.
|
String |
getBundleSymblicName()
Returns symbolic name of the bundle that has created the status.
|
String |
getCode()
Returns the status code.
|
Exception |
getException()
Returns the exception of the status.
|
String |
getId()
Returns the id of the status.
|
String |
getMessage()
Returns the message of the status.
|
Object |
getProperty(String key)
Returns the value of the property.
|
IStatus.Severity |
getSeverity()
Returns the severity of the status.
|
boolean |
isCancel()
Returns true, if the status is
IStatus.Severity.CANCEL . |
boolean |
isError()
Returns true, if the status is
IStatus.Severity.ERROR . |
boolean |
isInfo()
Returns true, if the status is
IStatus.Severity.INFO . |
boolean |
isOK()
Returns true, if the status is
IStatus.Severity.OK or
IStatus.Severity.INFO . |
boolean |
isWarning()
Returns true, if the status is
IStatus.Severity.WARNING . |
void |
putProperty(String key,
Object value)
Puts a property into the status.
|
static final String PROP_UI_APPLICATION_ID
static final String PROP_FIELD_ID
static final String PROP_FIELD_I18N_KEY
static final String PROP_JAVAX_CONSTRAINT
static final String PROP_JAVAX_LEAF_BEAN
static final String PROP_JAVAX_PROPERTY_PATH
static final String PROP_CREATOR
String getId()
{bundleSymbolicName}.{code}
. So every bundle may specify its own codes.String getCode()
String getBundleSymblicName()
IStatus.Severity getSeverity()
String getMessage()
null
.Exception getException()
null
.boolean isOK()
IStatus.Severity.OK
or
IStatus.Severity.INFO
.boolean isInfo()
IStatus.Severity.INFO
.boolean isWarning()
IStatus.Severity.WARNING
.boolean isError()
IStatus.Severity.ERROR
.boolean isCancel()
IStatus.Severity.CANCEL
. May be used to
detect a "veto" for a process.void putProperty(String key, Object value)
key
- the keyvalue
- the valueboolean containsProperty(String key)
key
- the keyObject getProperty(String key)
key
- the keyCopyright © 2013-2016 Loetz GmbH&Co.KG - Heidelberg - Germany, Eclipse OSBP Project, OS.bee