java.lang.Object
recoin.group.ComponentSupportImpl
recoin.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
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
ResultList
public ResultList()
- Creates an empty ResultList.
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.