Package org.openscience.cdk.rinchi
Enum StatusMessagesOutput.Status
- java.lang.Object
-
- java.lang.Enum<StatusMessagesOutput.Status>
-
- org.openscience.cdk.rinchi.StatusMessagesOutput.Status
-
- All Implemented Interfaces:
Serializable
,Comparable<StatusMessagesOutput.Status>
- Enclosing class:
- StatusMessagesOutput
public static enum StatusMessagesOutput.Status extends Enum<StatusMessagesOutput.Status>
Represents the status of a process, indicating whether it was successful, encountered warnings, or errors.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StatusMessagesOutput.Status
getHigherSeverity(StatusMessagesOutput.Status other)
Compares the current status with another given status and yields the status with higher severity.static StatusMessagesOutput.Status
valueOf(String name)
Returns the enum constant of this type with the specified name.static StatusMessagesOutput.Status[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUCCESS
public static final StatusMessagesOutput.Status SUCCESS
Success, with no warnings or errors.
-
WARNING
public static final StatusMessagesOutput.Status WARNING
Success with one or more warning(s) issued.
-
ERROR
public static final StatusMessagesOutput.Status ERROR
Error, no result was obtained.
-
-
Method Detail
-
values
public static StatusMessagesOutput.Status[] 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 (StatusMessagesOutput.Status c : StatusMessagesOutput.Status.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StatusMessagesOutput.Status 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
-
getHigherSeverity
public StatusMessagesOutput.Status getHigherSeverity(StatusMessagesOutput.Status other)
Compares the current status with another given status and yields the status with higher severity.- Parameters:
other
- the other status to compare with- Returns:
- the status with the higher severity
- Throws:
IllegalStateException
- if the current status is unknown
-
-