Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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

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

public enum StateType
extends Enum<StateType>

Status type.

Author:
Sebastien Vincent

Enum Constant Summary
deleted
          Deleted state.
full
          Full state.
partial
          Partial state.
 
Method Summary
static StateType parseString(String typeStr)
          Returns a StateType.
static StateType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static StateType[] 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

full

public static final StateType full
Full state.


partial

public static final StateType partial
Partial state.


deleted

public static final StateType deleted
Deleted state.

Method Detail

values

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

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

valueOf

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

parseString

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

Parameters:
typeStr - the String that we'd like to parse.
Returns:
a StateType.
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.