org.chorem.pollen.ui.data
Enum PollStep
java.lang.Object
java.lang.Enum<PollStep>
org.chorem.pollen.ui.data.PollStep
- All Implemented Interfaces:
- Serializable, Comparable<PollStep>
public enum PollStep
- extends Enum<PollStep>
Énumération représentant les étapes du formulaire de création de sondage.
|
Method Summary |
Integer |
getIndex()
|
static PollStep |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static PollStep[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
POLL
public static final PollStep POLL
OPTIONS
public static final PollStep OPTIONS
LISTS
public static final PollStep LISTS
CHOICES
public static final PollStep CHOICES
index
protected Integer index
values
public static PollStep[] 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 (PollStep c : PollStep.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static PollStep 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 name
NullPointerException - if the argument is null
getIndex
public Integer getIndex()
Copyright © 2009-2010 CodeLutin. All Rights Reserved.