com.jurismarches.vradi
Enum VradiConstants.SessionStatus

java.lang.Object
  extended by java.lang.Enum<VradiConstants.SessionStatus>
      extended by com.jurismarches.vradi.VradiConstants.SessionStatus
All Implemented Interfaces:
Serializable, Comparable<VradiConstants.SessionStatus>
Enclosing class:
VradiConstants

public static enum VradiConstants.SessionStatus
extends Enum<VradiConstants.SessionStatus>

Session status.


Enum Constant Summary
ACTIVE
           
ERROR
           
SENT
           
STOPPED
           
 
Field Summary
protected  String description
           
 
Method Summary
 String getDescription()
           
static VradiConstants.SessionStatus getStatus(int i)
           
 int getValue()
           
static boolean isActive(Session session)
           
static boolean isSent(Session session)
           
static boolean isStopped(Session session)
           
static boolean isToRestart(Session session)
           
static boolean isToSend(Session session)
           
static VradiConstants.SessionStatus valueOf(String name)
          Returns the enum constant of this type with the specified name.
static VradiConstants.SessionStatus[] 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

ACTIVE

public static final VradiConstants.SessionStatus ACTIVE

STOPPED

public static final VradiConstants.SessionStatus STOPPED

SENT

public static final VradiConstants.SessionStatus SENT

ERROR

public static final VradiConstants.SessionStatus ERROR
Field Detail

description

protected final String description
Method Detail

values

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

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

valueOf

public static VradiConstants.SessionStatus 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

getDescription

public String getDescription()

getStatus

public static VradiConstants.SessionStatus getStatus(int i)

getValue

public int getValue()

isActive

public static boolean isActive(Session session)

isSent

public static boolean isSent(Session session)

isStopped

public static boolean isStopped(Session session)

isToRestart

public static boolean isToRestart(Session session)

isToSend

public static boolean isToSend(Session session)


Copyright © 2009-2011 JurisMarches. All Rights Reserved.