org.jabber.jabberbeans
Class ConnectionEvent.EState
java.lang.Object
|
+--org.jabber.jabberbeans.ConnectionEvent.EState
- Enclosing class:
- ConnectionEvent
- public static final class ConnectionEvent.EState
- extends java.lang.Object
EState is an enumerator class; it provides an immutable
reference on the current state of the connection to a jabber server.
Method Summary |
int |
getValue()
getValue returns the value of the enumeration. |
java.lang.String |
toString()
converts the value to a string for display. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NOT_SET
public static final int NOT_SET
- See Also:
- Constant Field Values
DISCONNECTED
public static final int DISCONNECTED
- See Also:
- Constant Field Values
CONNECTING
public static final int CONNECTING
- See Also:
- Constant Field Values
CONNECTED
public static final int CONNECTED
- See Also:
- Constant Field Values
ConnectionEvent.EState
protected ConnectionEvent.EState(int newVal)
throws java.lang.IllegalArgumentException
- Creates a new immutable
EState
instance.
- Parameters:
newVal
- an int
value, meant to be one of the
connection states defined in this class
- Throws:
java.lang.IllegalArgumentException
- if an illegal state is declared
toString
public java.lang.String toString()
- converts the value to a string for display.
- Overrides:
toString
in class java.lang.Object
- Returns:
- a
String
holding the enumeration type name
getValue
public int getValue()
getValue
returns the value of the enumeration.
- Returns:
- an
int
value corresponding to the enumeration