Enum CriticalityType
- java.lang.Object
-
- java.lang.Enum<CriticalityType>
-
- com.evolveum.midpoint.xml.ns._public.common.common_3.CriticalityType
-
- All Implemented Interfaces:
Serializable
,Comparable<CriticalityType>
public enum CriticalityType extends Enum<CriticalityType>
Java class for CriticalityType.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="CriticalityType"> <restriction base="{http://www.w3.org/2001/XMLSchema}string"> <enumeration value="fatal"/> <enumeration value="partial"/> <enumeration value="ignore"/> </restriction> </simpleType>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CriticalityType
fromValue(String v)
String
value()
static CriticalityType
valueOf(String name)
Returns the enum constant of this type with the specified name.static CriticalityType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FATAL
public static final CriticalityType FATAL
Fatal criticality. Error in the operation will cause fatal error. The processing will be interrupted, error will be indicated.
-
PARTIAL
public static final CriticalityType PARTIAL
Partial criticality. The error will be indicated, composite result of the operation will be presented as partial error, but the processing will NOT be interrupted. The operation may try recover and continue.
-
IGNORE
public static final CriticalityType IGNORE
No criticality. The error will be ignored. It will not be indicated as error in any result (may be indicated as handler error). Warning: this may be dangerous. Experimental: this is only partially supported now.
-
-
Method Detail
-
values
public static CriticalityType[] 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 (CriticalityType c : CriticalityType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CriticalityType 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
-
value
public String value()
-
fromValue
public static CriticalityType fromValue(String v)
-
-