Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.jabber.extensions.notification
Class NotificationEventIQ

java.lang.Object
  extended by org.jivesoftware.smack.packet.Packet
      extended by org.jivesoftware.smack.packet.IQ
          extended by net.java.sip.communicator.impl.protocol.jabber.extensions.notification.NotificationEventIQ

public class NotificationEventIQ
extends org.jivesoftware.smack.packet.IQ

Notification Event. Events are send to notify for some event holding a value.

Author:
Damian Minkov

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jivesoftware.smack.packet.IQ
org.jivesoftware.smack.packet.IQ.Type
 
Field Summary
static String ELEMENT_NAME
          The name of the element that contains the notification event data.
(package private) static String EVENT_NAME
          The name of the argument that contains the event name.
(package private) static String EVENT_SOURCE
          The name of the argument that contains the event source.
(package private) static String EVENT_VALUE
          The name of the argument that contains the event value.
static String NAMESPACE
          The namespace that input notification belongs to.
 
Fields inherited from class org.jivesoftware.smack.packet.Packet
DEFAULT_LANGUAGE, ID_NOT_AVAILABLE
 
Constructor Summary
NotificationEventIQ()
           
 
Method Summary
 String getChildElementXML()
          Returns the sub-element XML section of the IQ packet, or null if there isn't one.
 String getEventName()
          Current notification event name.
 String getEventSource()
          Current notification event source.
 String getEventValue()
          Current notification event value.
 void setEventName(String eventName)
          Sets event new name.
 void setEventSource(String eventSource)
          Sets event source new value.
 void setEventValue(String eventValue)
          Sets event new value.
 
Methods inherited from class org.jivesoftware.smack.packet.IQ
createErrorResponse, createResultIQ, getType, setType, toXML
 
Methods inherited from class org.jivesoftware.smack.packet.Packet
addExtension, deleteProperty, equals, getDefaultLanguage, getError, getExtension, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getProperty, getPropertyNames, getTo, getXmlns, hashCode, nextID, removeExtension, setDefaultXmlns, setError, setFrom, setPacketID, setProperty, setTo
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAMESPACE

public static final String NAMESPACE
The namespace that input notification belongs to.

See Also:
Constant Field Values

ELEMENT_NAME

public static final String ELEMENT_NAME
The name of the element that contains the notification event data.

See Also:
Constant Field Values

EVENT_NAME

static final String EVENT_NAME
The name of the argument that contains the event name.

See Also:
Constant Field Values

EVENT_VALUE

static final String EVENT_VALUE
The name of the argument that contains the event value.

See Also:
Constant Field Values

EVENT_SOURCE

static final String EVENT_SOURCE
The name of the argument that contains the event source.

See Also:
Constant Field Values
Constructor Detail

NotificationEventIQ

public NotificationEventIQ()
Method Detail

getChildElementXML

public String getChildElementXML()
Returns the sub-element XML section of the IQ packet, or null if there isn't one. Packet extensions must be included, if any are defined.

Extensions of this class must override this method.

Specified by:
getChildElementXML in class org.jivesoftware.smack.packet.IQ
Returns:
the child element section of the IQ XML.

getEventName

public String getEventName()
Current notification event name.

Returns:
current event name.

setEventName

public void setEventName(String eventName)
Sets event new name.

Parameters:
eventName - new event name.

getEventValue

public String getEventValue()
Current notification event value.

Returns:
current event value.

setEventValue

public void setEventValue(String eventValue)
Sets event new value.

Parameters:
eventValue - new event value.

getEventSource

public String getEventSource()
Current notification event source.

Returns:
the current notification event source.

setEventSource

public void setEventSource(String eventSource)
Sets event source new value.

Parameters:
eventSource - value.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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