public enum ValidationMessageLevel extends Enum<ValidationMessageLevel>
An enumeration class that defines possible levels for validation messages.
Messages produced by Validator
implementations do not necessarily
indicate fatal errors. It is also possible to issue warnings to the user.
This enumeration class defines levels for validation messages supported by
this library.
Only the level ERROR
represents a real validation error. If an input
component contains a ValidationMessage
with the level ERROR
,
it is considered invalid, and the associated form cannot be closed using the
OK button. Other levels are only informative and do not have any real
consequences.
Enum Constant and Description |
---|
ERROR
The validation message level ERROR.
|
WARNING
The validation message level WARNING.
|
Modifier and Type | Method and Description |
---|---|
static ValidationMessageLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ValidationMessageLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ValidationMessageLevel ERROR
public static final ValidationMessageLevel WARNING
public static ValidationMessageLevel[] values()
for (ValidationMessageLevel c : ValidationMessageLevel.values()) System.out.println(c);
public static ValidationMessageLevel valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2016 The JGUIraffe Team. All rights reserved.