com.web_visage.ichat
Enum EnumStatus

java.lang.Object
  extended by java.lang.Enum<EnumStatus>
      extended by com.web_visage.ichat.EnumStatus
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<EnumStatus>

public enum EnumStatus
extends java.lang.Enum<EnumStatus>
implements java.io.Serializable

Typesafe enumeration of the iChat user statuses.

Author:
K.Baturytski

Enum Constant Summary
AWAY
           
DND
           
NO_MASS
           
NORMAL
          normal (available) state
 
Method Summary
static EnumStatus getByValue(int aValue)
          Find the status by its numeric value.
 int getValue()
          Returns the numeric status value.
static EnumStatus valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static EnumStatus[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NORMAL

public static final EnumStatus NORMAL
normal (available) state


AWAY

public static final EnumStatus AWAY

NO_MASS

public static final EnumStatus NO_MASS

DND

public static final EnumStatus DND
Method Detail

values

public static final EnumStatus[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(EnumStatus c : EnumStatus.values())
        System.out.println(c);

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

valueOf

public static EnumStatus 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

getByValue

public static EnumStatus getByValue(int aValue)
                             throws EnumerationValueNotFoundException
Find the status by its numeric value.

Parameters:
aValue -
Returns:
Throws:
EnumerationValueNotFoundException

getValue

public int getValue()
Returns the numeric status value.

Returns: