org.kuali.student.common.dto
Enum DtoConstants.DtoState
java.lang.Object
java.lang.Enum<DtoConstants.DtoState>
org.kuali.student.common.dto.DtoConstants.DtoState
- All Implemented Interfaces:
- Serializable, Comparable<DtoConstants.DtoState>
- Enclosing class:
- DtoConstants
public static enum DtoConstants.DtoState
- extends Enum<DtoConstants.DtoState>
DRAFT
public static final DtoConstants.DtoState DRAFT
SUBMITTED
public static final DtoConstants.DtoState SUBMITTED
APPROVED
public static final DtoConstants.DtoState APPROVED
ACTIVE
public static final DtoConstants.DtoState ACTIVE
SUSPENDED
public static final DtoConstants.DtoState SUSPENDED
RETIRED
public static final DtoConstants.DtoState RETIRED
SUPERSEDED
public static final DtoConstants.DtoState SUPERSEDED
SAVED
public static final DtoConstants.DtoState SAVED
ENROUTE
public static final DtoConstants.DtoState ENROUTE
values
public static DtoConstants.DtoState[] 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 (DtoConstants.DtoState c : DtoConstants.DtoState.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static DtoConstants.DtoState 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
equalsString
public boolean equalsString(String state)
getNextState
public static DtoConstants.DtoState getNextState(String state)
- This is used to determine the next state.
TODO: Ideally this method should not be hardcoded here. Also determining next state may
be a more complicated and not just be a simple sequence.
- Parameters:
state
-
- Returns:
- the next state
getNextStateAsString
public static String getNextStateAsString(String state)
Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.