org.jabber.jabberbeans.Extension
Class BrowseItem

java.lang.Object
  |
  +--org.jabber.jabberbeans.XMLData
        |
        +--org.jabber.jabberbeans.Extension.BrowseItem
All Implemented Interfaces:
Extension, QueryExtension, java.io.Serializable
Direct Known Subclasses:
IQBrowse

public class BrowseItem
extends XMLData
implements QueryExtension

See Also:
Serialized Form

Constructor Summary
BrowseItem(BrowseItemBuilder builder)
          Construct a new BrowseItem object, based on the builder state.
 
Method Summary
 void appendItem(java.lang.StringBuffer retval)
          appendItem converts this packet to XML It then appends it to a StringBuffer.
 java.util.Enumeration children()
          return an enumeration of children as BrowseItems, or null if no children were specified.
 java.lang.String getCategory()
          return the category of this item (represented by the type attribute)
 java.util.Vector getChildren()
           
 JID getJID()
          return the address this item refers to
 java.lang.String getName()
          return a textual string for displaying this item
 java.util.Vector getNamespaces()
           
 java.lang.String getType()
          return the type of this item (represented by the element name)
protected  java.lang.String getXMLNS()
          getXMLNS is overloaded by derived classes to allow the toString and appendItem() code to be fixed.
 boolean isIQ()
           
 java.util.Enumeration namespaces()
           
 
Methods inherited from class org.jabber.jabberbeans.XMLData
appendAttrib, appendAttrib, appendChild, appendChild, escapeString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jabber.jabberbeans.Extension.Extension
toString
 

Constructor Detail

BrowseItem

public BrowseItem(BrowseItemBuilder builder)
Construct a new BrowseItem object, based on the builder state.

Parameters:
builder - BrowseItemBuilder which holds the state this object will be based on
Method Detail

isIQ

public final boolean isIQ()

getCategory

public final java.lang.String getCategory()
return the category of this item (represented by the type attribute)


getType

public final java.lang.String getType()
return the type of this item (represented by the element name)


getName

public final java.lang.String getName()
return a textual string for displaying this item


getJID

public final JID getJID()
return the address this item refers to


getNamespaces

public java.util.Vector getNamespaces()

getChildren

public java.util.Vector getChildren()

namespaces

public final java.util.Enumeration namespaces()

children

public final java.util.Enumeration children()
return an enumeration of children as BrowseItems, or null if no children were specified.


getXMLNS

protected java.lang.String getXMLNS()
getXMLNS is overloaded by derived classes to allow the toString and appendItem() code to be fixed.


appendItem

public void appendItem(java.lang.StringBuffer retval)
appendItem converts this packet to XML It then appends it to a StringBuffer.

Specified by:
appendItem in interface Extension
Specified by:
appendItem in class XMLData
Parameters:
retval - The StringBuffer to append to