Class ValidationStatus
- java.lang.Object
-
- org.eclipse.core.runtime.Status
-
- org.eclipse.core.databinding.validation.ValidationStatus
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IStatuscancel(java.lang.String message)Creates a new validation cancel status with the given message.booleanequals(java.lang.Object obj)Equality is based upon instance equality rather than identity.static IStatuserror(java.lang.String message)Creates a new validation error status with the given message.static IStatuserror(java.lang.String message, java.lang.Throwable exception)Creates a new validation error status with the given message and exception.inthashCode()static IStatusinfo(java.lang.String message)Creates a new validation info status with the given message.static IStatusok()Returns an OK status.static IStatuswarning(java.lang.String message)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 Detail
-
error
public static IStatus error(java.lang.String message)
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
public static IStatus cancel(java.lang.String message)
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
public static IStatus error(java.lang.String message, java.lang.Throwable exception)
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
public static IStatus warning(java.lang.String message)
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
public static IStatus info(java.lang.String message)
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
public static IStatus ok()
Returns an OK status.- Returns:
- an ok status
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
Equality is based upon instance equality rather than identity.- Overrides:
equalsin classjava.lang.Object
-
-