wt.epm.retriever
Class ResultList

java.lang.Object
  extended bywt.epm.retriever.ResultList
All Implemented Interfaces:
PopulatableResult

public class ResultList
extends Object
implements PopulatableResult

A simple result of the dependency retriever. May be subclassed to provide more sophisticated behavior.


Field Summary
protected  WTCollection links
           
protected  WTCollection nodes
           
 
Constructor Summary
ResultList()
           
 
Method Summary
 WTCollection getLinks()
          Links retrieved by the dependency tracer.
 WTCollection getNodes()
          Iterated or Mastered objects retrieved by the dependency tracer.
 void populate(WTCollection nodes, WTCollection links)
          Takes collections of traced objects and links to build a specific result structure.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nodes

protected WTCollection nodes

links

protected WTCollection links
Constructor Detail

ResultList

public ResultList()
Method Detail

populate

public void populate(WTCollection nodes,
                     WTCollection links)
Takes collections of traced objects and links to build a specific result structure. Does not copy the collections, just remembers references to them.

Specified by:
populate in interface PopulatableResult
Parameters:
nodes - WTCollection of Iterated or Mastered objects. May be empty.
links - WTCollection of BinaryLink objects. May be empty.
Throws:
NullPointerException - if either of the parameters is null.

getLinks

public WTCollection getLinks()
Links retrieved by the dependency tracer.

Returns:
unmodifiable WTCollection

getNodes

public WTCollection getNodes()
Iterated or Mastered objects retrieved by the dependency tracer.

Returns:
unmodifiable WTCollection