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

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

public class PubsubSubscribe
extends XMLData

PubsubSubscribe contains <subscribe> or <unsubscribe> tag from pubsub.

See Also:
Serialized Form

Constructor Summary
PubsubSubscribe(PubsubSubscribeBuilder builder)
          Creates a new PubsubSubscribe 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.
 JID getJID()
           
 java.lang.String getNode()
           
 boolean isUnsubscribe()
           
 java.util.Enumeration items()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PubsubSubscribe

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

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

getNode

public java.lang.String getNode()

getJID

public JID getJID()

isUnsubscribe

public boolean isUnsubscribe()

items

public java.util.Enumeration items()

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