Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.jabber.extensions.coin
Enum DisconnectionType

java.lang.Object
  extended by java.lang.Enum<DisconnectionType>
      extended by net.java.sip.communicator.impl.protocol.jabber.extensions.coin.DisconnectionType
All Implemented Interfaces:
Serializable, Comparable<DisconnectionType>

public enum DisconnectionType
extends Enum<DisconnectionType>

Disconnection type.

Author:
Sebastien Vincent

Enum Constant Summary
booted
          Booted.
busy
          Busy
departed
          Departed.
failed
          Failed.
 
Method Summary
static DisconnectionType parseString(String typeStr)
          Returns a DisconnectionType.
 String toString()
          Returns the type name.
static DisconnectionType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DisconnectionType[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

departed

public static final DisconnectionType departed
Departed.


booted

public static final DisconnectionType booted
Booted.


failed

public static final DisconnectionType failed
Failed.


busy

public static final DisconnectionType busy
Busy

Method Detail

values

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

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

valueOf

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

toString

public String toString()
Returns the type name.

Overrides:
toString in class Enum<DisconnectionType>
Returns:
type name

parseString

public static DisconnectionType parseString(String typeStr)
                                     throws IllegalArgumentException
Returns a DisconnectionType.

Parameters:
typeStr - the String that we'd like to parse.
Returns:
an DisconnectionType.
Throws:
IllegalArgumentException - in case typeStr is not a valid EndPointType.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.