edu.isi.powerloom.semantic_web
Class ListCollector

java.lang.Object
  extended by edu.isi.powerloom.semantic_web.Collector
      extended by edu.isi.powerloom.semantic_web.ListCollector

public class ListCollector
extends Collector

Collects items into a list, which can be retrieved with the getList method.


Field Summary
 boolean reversedP
           
 List theList
           
 
Constructor Summary
ListCollector()
           
 
Method Summary
 List getList()
          Return the internal list used by self.
 void insert(Stella_Object item)
          Insert item into the collector self.
static ListCollector newListCollector()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

theList

public List theList

reversedP

public boolean reversedP
Constructor Detail

ListCollector

public ListCollector()
Method Detail

newListCollector

public static ListCollector newListCollector()

getList

public List getList()
Return the internal list used by self. This will have the elements added in order when returned. But since it is shared with the collector, the order and values can change if insert is called after the list has been returned. If this is a concern, copy the returned value.

Returns:
List

insert

public void insert(Stella_Object item)
Insert item into the collector self. It will be added to the internal list of items collected.

Specified by:
insert in class Collector
Parameters:
item -