org.kuali.student.r2.common.dto
Enum DtoConstants.DtoState

java.lang.Object
  extended by java.lang.Enum<DtoConstants.DtoState>
      extended by org.kuali.student.r2.common.dto.DtoConstants.DtoState
All Implemented Interfaces:
Serializable, Comparable<DtoConstants.DtoState>
Enclosing class:
DtoConstants

public static enum DtoConstants.DtoState
extends Enum<DtoConstants.DtoState>


Enum Constant Summary
ACTIVE
           
APPROVED
           
DRAFT
           
ENROUTE
           
RETIRED
           
SAVED
           
SUBMITTED
           
SUPERSEDED
           
SUSPENDED
           
 
Method Summary
 boolean equalsString(String state)
           
static DtoConstants.DtoState getNextState(String state)
          This is used to determine the next state.
static String getNextStateAsString(String state)
           
static DtoConstants.DtoState valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DtoConstants.DtoState[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Method Detail

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-2013 The Kuali Foundation. All Rights Reserved.