Enum EntitySelection.State
- java.lang.Object
-
- java.lang.Enum<EntitySelection.State>
-
- org.xwiki.refactoring.job.question.EntitySelection.State
-
- All Implemented Interfaces:
Serializable
,Comparable<EntitySelection.State>
- Enclosing class:
- EntitySelection
public static enum EntitySelection.State extends Enum<EntitySelection.State>
Define the inner state of the EntitySelection.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DESELECTED
If a user deselected it.SELECTED
If a user selected it.UNKNOWN
Default state.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EntitySelection.State
valueOf(String name)
Returns the enum constant of this type with the specified name.static EntitySelection.State[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SELECTED
public static final EntitySelection.State SELECTED
If a user selected it.
-
DESELECTED
public static final EntitySelection.State DESELECTED
If a user deselected it.
-
UNKNOWN
public static final EntitySelection.State UNKNOWN
Default state. By default, UNKNOWN is considered as selected: seeEntitySelection.isSelected()
.
-
-
Method Detail
-
values
public static EntitySelection.State[] 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 (EntitySelection.State c : EntitySelection.State.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EntitySelection.State 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
-
-