|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jstacs.results.ResultSet
public class ResultSet
Class for a set of Results, which provides methods to access single Results in the set, to retrieve
the number of Results in the set, to get a String representation or an XML-representation of all the Results
in the set.
| Field Summary | |
|---|---|
protected Result[] |
results
The set of results as an array of Results |
| Constructor Summary | |
|---|---|
ResultSet(Collection<? extends Result> results)
Constructs a new ResultSet from a Collection of type Results. |
|
ResultSet(Result result)
Constructs a new ResultSet containing one Result. |
|
ResultSet(Result[]... results)
Constructs a new ResultSet from a 2-dimensional array of Results. |
|
ResultSet(StringBuffer representation)
Constructs a ResultSet from its XML-representation. |
|
| Method Summary | |
|---|---|
int |
findColumn(String columnName)
This method enables you to search for a column. |
protected void |
fromXML(StringBuffer representation)
Parses the contents of a ResultSet from its XML-representation as returned by toXML(). |
int |
getNumberOfResults()
Returns the number of Results in this ResultSet |
Result |
getResultAt(int index)
Returns Result number index in this ResultSet. |
Result[] |
getResults()
Returns all internal results. |
String |
toString()
|
StringBuffer |
toXML()
This method returns an XML-representation of an instance of the implementing class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Result[] results
Results
| Constructor Detail |
|---|
public ResultSet(Result result)
ResultSet containing one Result.
result - Result to be containedpublic ResultSet(Result[]... results)
ResultSet from a 2-dimensional array of Results.
results - the 2-dimensional array of Resultspublic ResultSet(Collection<? extends Result> results)
ResultSet from a Collection of type Results.
results - a Collection of Results/code>
public ResultSet(StringBuffer representation)
throws NonParsableException
ResultSet from its XML-representation.
representation - the XML-representation
NonParsableException - a NonParsableException is thrown if representation could not be parsed| Method Detail |
|---|
public Result getResultAt(int index)
Result number index in this ResultSet.
index - the index of the Result
indexpublic Result[] getResults()
public int getNumberOfResults()
Results in this ResultSet
public StringBuffer toXML()
Storable
toXML in interface Storable
protected void fromXML(StringBuffer representation)
throws NonParsableException
ResultSet from its XML-representation as returned by toXML().
representation - the XML-representation
NonParsableException - is thrown if the XML-code could not be parsedpublic String toString()
toString in class Objectpublic int findColumn(String columnName)
columnName - the name of the column
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||