Smack

org.jivesoftware.smackx.pubsub
Class RetractItem

java.lang.Object
  extended by org.jivesoftware.smackx.pubsub.RetractItem
All Implemented Interfaces:
PacketExtension

public class RetractItem
extends Object
implements PacketExtension

Represents and item that has been deleted from a node.

Author:
Robin Collier

Constructor Summary
RetractItem(String itemId)
          Construct a RetractItem with the specified id.
 
Method Summary
 String getElementName()
          Returns the root element name.
 String getId()
           
 String getNamespace()
          Returns the root element XML namespace.
 String toXML()
          Returns the XML representation of the PacketExtension.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RetractItem

public RetractItem(String itemId)
Construct a RetractItem with the specified id.

Parameters:
itemId - The id if the item deleted
Method Detail

getId

public String getId()

getElementName

public String getElementName()
Description copied from interface: PacketExtension
Returns the root element name.

Specified by:
getElementName in interface PacketExtension
Returns:
the element name.

getNamespace

public String getNamespace()
Description copied from interface: PacketExtension
Returns the root element XML namespace.

Specified by:
getNamespace in interface PacketExtension
Returns:
the namespace.

toXML

public String toXML()
Description copied from interface: PacketExtension
Returns the XML representation of the PacketExtension.

Specified by:
toXML in interface PacketExtension
Returns:
the packet extension as XML.

Smack

Copyright © 2003-2007 Jive Software.