Package org.rundeck.app.gui
Enum MenuItem.MenuType
- java.lang.Object
-
- java.lang.Enum<MenuItem.MenuType>
-
- org.rundeck.app.gui.MenuItem.MenuType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MenuItem.MenuType>
- Enclosing interface:
- MenuItem
public static enum MenuItem.MenuType extends java.lang.Enum<MenuItem.MenuType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EXECUTION_RETRY
PROJECT
PROJECT_CONFIG
SYSTEM_CONFIG
USER_MENU
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.function.Function<MenuItem,java.lang.Boolean>
getEnabledCheck(java.lang.String project, java.lang.String executionId)
boolean
isExecutionType()
boolean
isProjectType()
boolean
isSystemType()
static MenuItem.MenuType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MenuItem.MenuType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PROJECT
public static final MenuItem.MenuType PROJECT
-
PROJECT_CONFIG
public static final MenuItem.MenuType PROJECT_CONFIG
-
SYSTEM_CONFIG
public static final MenuItem.MenuType SYSTEM_CONFIG
-
USER_MENU
public static final MenuItem.MenuType USER_MENU
-
EXECUTION_RETRY
public static final MenuItem.MenuType EXECUTION_RETRY
-
-
Method Detail
-
values
public static MenuItem.MenuType[] 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 (MenuItem.MenuType c : MenuItem.MenuType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MenuItem.MenuType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
isProjectType
public boolean isProjectType()
-
isExecutionType
public boolean isExecutionType()
-
isSystemType
public boolean isSystemType()
-
getEnabledCheck
public java.util.function.Function<MenuItem,java.lang.Boolean> getEnabledCheck(java.lang.String project, java.lang.String executionId)
-
-