edu.ou.kmi.buddyspace.plugins.pubsub.xml
Class PubsubItem

java.lang.Object
  |
  +--XMLData
        |
        +--edu.ou.kmi.buddyspace.plugins.pubsub.xml.PubsubItem

public class PubsubItem
extends XMLData

PubsubItem contains <item> or <retract> tag from pubsub.

See Also:
Serialized Form

Constructor Summary
PubsubItem(PubsubItemBuilder builder)
          Creates a new PubsubItem instance, based on the builder state.
 
Method Summary
 void appendItem(java.lang.StringBuffer retval)
          appendItem appends the XML representation of the current packet data to the specified StringBuffer.
 java.lang.String getId()
           
 XMLData getXML()
           
 boolean isItem()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PubsubItem

public PubsubItem(PubsubItemBuilder builder)
           throws java.lang.InstantiationException
Creates a new PubsubItem instance, based on the builder state.

Parameters:
builder - an PubsubItemBuilder value
Throws:
java.lang.InstantiationException - if malformed or insufficient data is in the builder.
Method Detail

isItem

public boolean isItem()

getId

public java.lang.String getId()

getXML

public XMLData getXML()

appendItem

public void appendItem(java.lang.StringBuffer retval)
appendItem appends the XML representation of the current packet data to the specified StringBuffer.

Parameters:
retval - The StringBuffer to append to