org.kuali.student.common.validation.dto
Enum ValidationResultInfo.ErrorLevel
java.lang.Object
java.lang.Enum<ValidationResultInfo.ErrorLevel>
org.kuali.student.common.validation.dto.ValidationResultInfo.ErrorLevel
- All Implemented Interfaces:
- Serializable, Comparable<ValidationResultInfo.ErrorLevel>
- Enclosing class:
- ValidationResultInfo
public static enum ValidationResultInfo.ErrorLevel
- extends Enum<ValidationResultInfo.ErrorLevel>
Field Summary |
(package private) int |
level
|
OK
public static final ValidationResultInfo.ErrorLevel OK
WARN
public static final ValidationResultInfo.ErrorLevel WARN
ERROR
public static final ValidationResultInfo.ErrorLevel ERROR
level
int level
values
public static ValidationResultInfo.ErrorLevel[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (ValidationResultInfo.ErrorLevel c : ValidationResultInfo.ErrorLevel.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ValidationResultInfo.ErrorLevel valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
getLevel
public int getLevel()
min
public static ValidationResultInfo.ErrorLevel min(ValidationResultInfo.ErrorLevel e1,
ValidationResultInfo.ErrorLevel e2)
max
public static ValidationResultInfo.ErrorLevel max(ValidationResultInfo.ErrorLevel e1,
ValidationResultInfo.ErrorLevel e2)
Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.