public enum ResponseStatusType extends java.lang.Enum<ResponseStatusType>
Enum Constant and Description |
---|
ERROR |
FAILURE |
PARTIAL_SUCCESS |
SUCCESS |
WARNING |
Modifier and Type | Method and Description |
---|---|
static ResponseStatusType |
getStatus(java.lang.String statusString) |
static ResponseStatusType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ResponseStatusType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResponseStatusType SUCCESS
public static final ResponseStatusType FAILURE
public static final ResponseStatusType PARTIAL_SUCCESS
public static final ResponseStatusType ERROR
public static final ResponseStatusType WARNING
public static ResponseStatusType[] values()
for (ResponseStatusType c : ResponseStatusType.values()) System.out.println(c);
public static ResponseStatusType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static ResponseStatusType getStatus(java.lang.String statusString) throws java.lang.Exception
java.lang.Exception