net.java.slee.resource.diameter.ro
Enum RoSessionState

java.lang.Object
  extended by java.lang.Enum<RoSessionState>
      extended by net.java.slee.resource.diameter.ro.RoSessionState
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<RoSessionState>

public enum RoSessionState
extends java.lang.Enum<RoSessionState>

Enum representing Credit-Control FSM States.

Author:
Bartosz Baranowski , Alexandre Mendonca

Enum Constant Summary
IDLE
           
OPEN
           
PENDING_BUFFERED
           
PENDING_EVENT
           
PENDING_INITIAL
           
PENDING_TERMINATION
           
PENDING_UPDATE
           
TERMINATED
           
 
Method Summary
 RoSessionState fromInt(int value)
          Converts a given state value into it's equivalent.
 int getValue()
          Getter for the current FSM state as int.
static RoSessionState valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static RoSessionState[] 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

IDLE

public static final RoSessionState IDLE

PENDING_EVENT

public static final RoSessionState PENDING_EVENT

PENDING_INITIAL

public static final RoSessionState PENDING_INITIAL

PENDING_UPDATE

public static final RoSessionState PENDING_UPDATE

PENDING_TERMINATION

public static final RoSessionState PENDING_TERMINATION

PENDING_BUFFERED

public static final RoSessionState PENDING_BUFFERED

OPEN

public static final RoSessionState OPEN

TERMINATED

public static final RoSessionState TERMINATED
Method Detail

values

public static RoSessionState[] 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 (RoSessionState c : RoSessionState.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static RoSessionState valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getValue

public int getValue()
Getter for the current FSM state as int.

Returns:
an int corresponding to the actual FSM state.

fromInt

public RoSessionState fromInt(int value)
                       throws java.lang.IllegalArgumentException
Converts a given state value into it's equivalent.

Parameters:
value - int to be converted
Returns:
the corresponding RoSessionState enum value
Throws:
java.lang.IllegalArgumentException - if value is not applicable for this enum


Copyright © 2011. All Rights Reserved.