Firefish 0.5.10

gov.lbl.dsd.p2pio
Class ItemSet

java.lang.Object
  extended bygov.lbl.dsd.p2pio.MsgElement
      extended bygov.lbl.dsd.p2pio.ItemSet

public class ItemSet
extends MsgElement

A Send or FinalSend message contains a set of zero or more items; an item can, in fact, be any arbitrary XML element with any arbitrary XML attributes and child elements.

Version:
$Revision: 1.4 $, $Date: 2004/02/06 23:05:35 $

Constructor Summary
ItemSet()
           
ItemSet(Element elem)
           
 
Method Summary
 void add(Element elem)
           
 void addAll(Collection c)
          input must be a Collection.
 void addAll(Elements elems)
           
 void addAll(ItemSet c)
           
static ItemSet generateItemSet(int size)
           
 Element get(int index)
           
 Iterator iterator()
           
 void moveTo(ItemSet dest)
           
 void moveTo(ItemSet dest, int max)
           
static Element newItem()
           
 int size()
           
 List toList()
           
 
Methods inherited from class gov.lbl.dsd.p2pio.MsgElement
toDOM, toString, toXOM
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ItemSet

public ItemSet()

ItemSet

public ItemSet(Element elem)
Method Detail

toList

public List toList()

get

public Element get(int index)

size

public int size()

add

public void add(Element elem)

addAll

public void addAll(ItemSet c)

addAll

public void addAll(Elements elems)

addAll

public void addAll(Collection c)
input must be a Collection.


iterator

public Iterator iterator()

moveTo

public void moveTo(ItemSet dest)

moveTo

public void moveTo(ItemSet dest,
                   int max)

newItem

public static Element newItem()

generateItemSet

public static ItemSet generateItemSet(int size)

Firefish 0.5.10

Jump to the Firefish Homepage