| com.jgoodies.validation.Severity
Field Summary | |
Enum Constant | ERROR Indicates a problem that cannot be resumed or worked around. | Enum Constant | OK Returned by empty validation results to indicate that
no problem has been detected, or in other words, everything is fine. | Enum Constant | WARNING Indicates a problem that can be resumed or handled in
a reasonable way. |
Method Summary | |
public static Severity | max(Severity severity1, Severity severity2) Returns the higher of the given severities by comparing their ordinals. |
ERROR | Enum Constant ERROR(Code) | | Indicates a problem that cannot be resumed or worked around.
For example it prevents an edited value to be saved.
|
OK | Enum Constant OK(Code) | | Returned by empty validation results to indicate that
no problem has been detected, or in other words, everything is fine.
|
WARNING | Enum Constant WARNING(Code) | | Indicates a problem that can be resumed or handled in
a reasonable way. For example a field value may break
a constraint but the object can be temporarily saved.
|
max | public static Severity max(Severity severity1, Severity severity2)(Code) | | Returns the higher of the given severities by comparing their ordinals.
Since the higher severities have a lower ordinal, this method returns
the severity with the lower ordinal.
Parameters: severity1 - the first severity to check Parameters: severity2 - the second severity to check the higher of the given severities |
|
|