Enum CommandResult.Type
- java.lang.Object
-
- java.lang.Enum<CommandResult.Type>
-
- org.kie.workbench.common.command.client.CommandResult.Type
-
- All Implemented Interfaces:
Serializable,Comparable<CommandResult.Type>
- Enclosing interface:
- CommandResult<T>
public static enum CommandResult.Type extends Enum<CommandResult.Type>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetSeverity()static CommandResult.TypevalueOf(String name)Returns the enum constant of this type with the specified name.static CommandResult.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ERROR
public static final CommandResult.Type ERROR
-
WARNING
public static final CommandResult.Type WARNING
-
INFO
public static final CommandResult.Type INFO
-
-
Method Detail
-
values
public static CommandResult.Type[] 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 (CommandResult.Type c : CommandResult.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CommandResult.Type 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
-
getSeverity
public int getSeverity()
-
-