Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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

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

public enum EndpointStatusType
extends Enum<EndpointStatusType>

Endpoint status type.

Author:
Sebastien Vincent

Enum Constant Summary
alerting
          Alerting.
connected
          Connected.
dialing_in
          Dialing-in.
dialing_out
          Dialing-out.
disconnected
          Disconnected.
disconnecting
          Disconnecting.
muted_via_focus
          Muted via focus.
on_hold
          On-hold.
pending
          Pending.
 
Method Summary
static EndpointStatusType parseString(String typeStr)
          Returns a EndPointType.
 String toString()
          Returns the type name.
static EndpointStatusType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static EndpointStatusType[] 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

pending

public static final EndpointStatusType pending
Pending.


dialing_out

public static final EndpointStatusType dialing_out
Dialing-out.


dialing_in

public static final EndpointStatusType dialing_in
Dialing-in.


alerting

public static final EndpointStatusType alerting
Alerting.


on_hold

public static final EndpointStatusType on_hold
On-hold.


connected

public static final EndpointStatusType connected
Connected.


muted_via_focus

public static final EndpointStatusType muted_via_focus
Muted via focus.


disconnecting

public static final EndpointStatusType disconnecting
Disconnecting.


disconnected

public static final EndpointStatusType disconnected
Disconnected.

Method Detail

values

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

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

valueOf

public static EndpointStatusType 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<EndpointStatusType>
Returns:
type name

parseString

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

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