public enum ProgressState extends java.lang.Enum<ProgressState>
Enum Constant and Description |
---|
COMPLETED |
EXHAUSTED |
HANDED_IN |
IN_PROGRESS |
LIMIT_EXCEEDED |
MASTERED |
NOT_STARTED |
UNDEFINED |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
classType |
Modifier and Type | Method and Description |
---|---|
boolean |
canBeLaunched()
Indicates whether an assignment can be launched in this state.
|
boolean |
canBePurged()
Returns whether the content and actions for an assignment can be
purged from client storage.
|
boolean |
cannotBeLaunched() |
java.lang.String |
getDisplayName()
Returns a display version of the current tutoring type.
|
static ProgressState |
getStateFromName(java.lang.String stateName) |
void |
validateStateChange(ProgressState newState) |
static ProgressState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ProgressState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProgressState UNDEFINED
public static final ProgressState NOT_STARTED
public static final ProgressState IN_PROGRESS
public static final ProgressState COMPLETED
public static final ProgressState MASTERED
public static final ProgressState LIMIT_EXCEEDED
public static final ProgressState EXHAUSTED
public static final ProgressState HANDED_IN
public static ProgressState[] values()
for (ProgressState c : ProgressState.values()) System.out.println(c);
public static ProgressState valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static ProgressState getStateFromName(java.lang.String stateName)
public java.lang.String getDisplayName()
public boolean canBeLaunched()
public boolean cannotBeLaunched()
public boolean canBePurged()
public void validateStateChange(ProgressState newState)