Class ValidationStatus
java.lang.Object
org.eclipse.core.runtime.Status
org.eclipse.core.databinding.validation.ValidationStatus
- All Implemented Interfaces:
IStatus
Convenience class for creating status objects.
- Since:
- 3.3
-
Field Summary
Fields inherited from class org.eclipse.core.runtime.Status
CANCEL_STATUS, OK_STATUS
-
Method Summary
Modifier and TypeMethodDescriptionstatic IStatus
Creates a new validation cancel status with the given message.boolean
Equality is based upon instance equality rather than identity.static IStatus
Creates a new validation error status with the given message.static IStatus
Creates a new validation error status with the given message and exception.int
hashCode()
static IStatus
Creates a new validation info status with the given message.static IStatus
ok()
Returns an OK status.static IStatus
Creates a new validation warning status with the given message.Methods inherited from class org.eclipse.core.runtime.Status
getChildren, getCode, getException, getMessage, getPlugin, getSeverity, isMultiStatus, isOK, matches, setCode, setException, setMessage, setPlugin, setSeverity, toString, warning
-
Method Details
-
error
Creates a new validation error status with the given message.- Parameters:
message
- the validation message- Returns:
- a new error status with the given message
-
cancel
Creates a new validation cancel status with the given message.- Parameters:
message
- the validation message- Returns:
- a new cancel status with the given message
-
error
Creates a new validation error status with the given message and exception.- Parameters:
message
- the validation messageexception
- the validation exception- Returns:
- a new error status with the given message and exception
-
warning
Creates a new validation warning status with the given message.- Parameters:
message
- the validation message- Returns:
- a new warning status with the given message
-
info
Creates a new validation info status with the given message.- Parameters:
message
- the validation message- Returns:
- a new info status with the given message
-
ok
Returns an OK status.- Returns:
- an ok status
-
hashCode
public int hashCode() -
equals
Equality is based upon instance equality rather than identity.
-