Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

recoin.container
Class ResultList  view ResultList download ResultList.java

java.lang.Object
  extended byrecoin.group.ComponentSupportImpl
      extended byrecoin.container.ResultList
All Implemented Interfaces:
recoin.group.ComponentSupport, java.io.Serializable
Direct Known Subclasses:
MergedResultList

public class ResultList
extends recoin.group.ComponentSupportImpl

The ResultList represents a collection of Result objects.
It extends the simple class ComponentSupportImpl in order for it to be passed to and processed by Component objects.

Version:
0.2.9

Field Summary
(package private) static org.apache.log4j.Logger logger
          The logger for this class.
protected  java.lang.Class resultClass
          The Class of the Result objects of this ResultList.
protected  java.util.Vector results
          The Result objects.
 
Fields inherited from class recoin.group.ComponentSupportImpl
chainID, classname, description, id, name
 
Constructor Summary
ResultList()
          Creates an empty ResultList.
 
Method Summary
 void addResult(Result r)
          Adds the specified Result to this ResultList and sets the Result's ResultList field to this ResultList.
 int getResultCount()
          Returns the number of Result objects contained in this ResultList.
 java.util.Vector getResults()
          Returns all Results contained in this ResultList.
 void setResultClass(java.lang.Class c)
          Sets the Class for the Result objects in this ResultList to the specified one.
 void setResults(java.util.Vector results)
          Sets the Result objects of this ResultList to the ones specified in the Vector.
 
Methods inherited from class recoin.group.ComponentSupportImpl
getChainID, getClassname, getDescription, getID, getName, setChainID, setClassname, setDescription, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

static org.apache.log4j.Logger logger
The logger for this class.


results

protected java.util.Vector results
The Result objects.


resultClass

protected java.lang.Class resultClass
The Class of the Result objects of this ResultList.

Constructor Detail

ResultList

public ResultList()
Creates an empty ResultList.

Method Detail

addResult

public void addResult(Result r)
Adds the specified Result to this ResultList and sets the Result's ResultList field to this ResultList. If the resultClass field of this ResultList has not been set, it will be set to the Class of the specified Result.


getResults

public java.util.Vector getResults()
Returns all Results contained in this ResultList.


getResultCount

public int getResultCount()
Returns the number of Result objects contained in this ResultList.


setResultClass

public void setResultClass(java.lang.Class c)
Sets the Class for the Result objects in this ResultList to the specified one. If the field hadn't been set yet, it is set to the specified Class, otherwise it is ignored.


setResults

public void setResults(java.util.Vector results)
Sets the Result objects of this ResultList to the ones specified in the Vector.