Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.service.googlecontacts
Enum GoogleContactsConnection.ConnectionStatus

java.lang.Object
  extended by java.lang.Enum<GoogleContactsConnection.ConnectionStatus>
      extended by net.java.sip.communicator.service.googlecontacts.GoogleContactsConnection.ConnectionStatus
All Implemented Interfaces:
Serializable, Comparable<GoogleContactsConnection.ConnectionStatus>
Enclosing interface:
GoogleContactsConnection

public static enum GoogleContactsConnection.ConnectionStatus
extends Enum<GoogleContactsConnection.ConnectionStatus>

Enumeration for connection status.


Enum Constant Summary
ERROR_INVALID_CREDENTIALS
          Connection has failed due to invalid credentials.
ERROR_UNKNOWN
          Connection has failed due to unknown reason.
SUCCESS
          Connection has succeed.
 
Method Summary
static GoogleContactsConnection.ConnectionStatus valueOf(String name)
          Returns the enum constant of this type with the specified name.
static GoogleContactsConnection.ConnectionStatus[] 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

ERROR_INVALID_CREDENTIALS

public static final GoogleContactsConnection.ConnectionStatus ERROR_INVALID_CREDENTIALS
Connection has failed due to invalid credentials.


ERROR_UNKNOWN

public static final GoogleContactsConnection.ConnectionStatus ERROR_UNKNOWN
Connection has failed due to unknown reason.


SUCCESS

public static final GoogleContactsConnection.ConnectionStatus SUCCESS
Connection has succeed.

Method Detail

values

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

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

valueOf

public static GoogleContactsConnection.ConnectionStatus 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

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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