Package org.ametys.cms.transformation
Enum ConsistencyChecker.CHECK
- java.lang.Object
-
- java.lang.Enum<ConsistencyChecker.CHECK>
-
- org.ametys.cms.transformation.ConsistencyChecker.CHECK
-
- All Implemented Interfaces:
Serializable
,Comparable<ConsistencyChecker.CHECK>
- Enclosing class:
- ConsistencyChecker
public static enum ConsistencyChecker.CHECK extends Enum<ConsistencyChecker.CHECK>
The state of the check
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NOT_FOUND
Not Found.SERVER_ERROR
Server Error.SUCCESS
If the check was all rightUNAUTHORIZED
Unauthorized.UNKNOWN
If the check may be too long
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ConsistencyChecker.CHECK
from(HttpUrlUtils.HttpCheck httpCheck)
Convert aHttpUrlUtils.HttpCheck
value to aConsistencyChecker.CHECK
valuestatic ConsistencyChecker.CHECK
valueOf(String name)
Returns the enum constant of this type with the specified name.static ConsistencyChecker.CHECK[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUCCESS
public static final ConsistencyChecker.CHECK SUCCESS
If the check was all right
-
SERVER_ERROR
public static final ConsistencyChecker.CHECK SERVER_ERROR
Server Error.
-
NOT_FOUND
public static final ConsistencyChecker.CHECK NOT_FOUND
Not Found.
-
UNAUTHORIZED
public static final ConsistencyChecker.CHECK UNAUTHORIZED
Unauthorized.
-
UNKNOWN
public static final ConsistencyChecker.CHECK UNKNOWN
If the check may be too long
-
-
Method Detail
-
values
public static ConsistencyChecker.CHECK[] 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 (ConsistencyChecker.CHECK c : ConsistencyChecker.CHECK.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConsistencyChecker.CHECK 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 nameNullPointerException
- if the argument is null
-
from
public static ConsistencyChecker.CHECK from(HttpUrlUtils.HttpCheck httpCheck)
Convert aHttpUrlUtils.HttpCheck
value to aConsistencyChecker.CHECK
value- Parameters:
httpCheck
- the HTTP check- Returns:
- the CHECK value
-
-