Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.jabber.extensions.inputevt
Enum InputEvtAction

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

public enum InputEvtAction
extends Enum<InputEvtAction>

Enumeration about the possible actions for an InputEvt IQ.

Author:
Sebastien Vincent

Enum Constant Summary
NOTIFY
          The notify action.
 
Method Summary
static InputEvtAction parseString(String inputActionStr)
          Returns a InputEvtAction value corresponding to the specified inputActionStr.
 String toString()
          Returns the name of this InputEvtAction.
static InputEvtAction valueOf(String name)
          Returns the enum constant of this type with the specified name.
static InputEvtAction[] 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

NOTIFY

public static final InputEvtAction NOTIFY
The notify action.

Method Detail

values

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

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

valueOf

public static InputEvtAction 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 name of this InputEvtAction. The name returned by this method is meant for use directly in the XMPP XML string.

Overrides:
toString in class Enum<InputEvtAction>
Returns:
Returns the name of this InputEvtAction.

parseString

public static InputEvtAction parseString(String inputActionStr)
                                  throws IllegalArgumentException
Returns a InputEvtAction value corresponding to the specified inputActionStr.

Parameters:
inputActionStr - the action String that we'd like to parse.
Returns:
a InputEvtAction value corresponding to the specified inputActionStr.
Throws:
IllegalArgumentException - in case inputActionStr is not valid

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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