|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.jstacs.results.ResultSet
public class ResultSet
Class for a set of Result
s which provides methods to access single
Result
s in the set, to retrieve the number of Result
s in the
set, to get a String
representation or an XML representation of all
the Result
s in the set.
Field Summary | |
---|---|
protected AnnotatedEntityList<Result> |
results
The internally stores results. |
Constructor Summary | |
---|---|
ResultSet(Collection<? extends Result> results)
Constructs a new ResultSet from a Collection of type
Result . |
|
ResultSet(Result result)
Constructs a new ResultSet containing one Result . |
|
ResultSet(Result[]... results)
Constructs a new ResultSet from a two-dimensional array of
Result s. |
|
ResultSet(StringBuffer representation)
The standard constructor for the interface Storable . |
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 Result s in this ResultSet |
Result |
getResultAt(int index)
Returns Result number index in this
ResultSet . |
Result |
getResultForName(String name)
Returns Result with name name in this
ResultSet . |
Result[] |
getResults()
Returns all internal results as an array of Result s. |
String |
toString()
|
StringBuffer |
toXML()
This method returns an XML representation as StringBuffer 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 AnnotatedEntityList<Result> results
Constructor Detail |
---|
public ResultSet(Result result)
ResultSet
containing one Result
.
result
- the Result
to be containedpublic ResultSet(Result[]... results)
ResultSet
from a two-dimensional array of
Result
s.
results
- the two-dimensional array of Result
spublic ResultSet(Collection<? extends Result> results)
ResultSet
from a Collection
of type
Result
.
results
- a Collection
of Result
spublic ResultSet(StringBuffer representation) throws NonParsableException
Storable
.
Constructs a ResultSet
from its XML representation.
representation
- the XML representation as StringBuffer
NonParsableException
- if the StringBuffer
representation
could
not be parsedMethod Detail |
---|
public Result getResultAt(int index)
Result
number index
in this
ResultSet
.
index
- the index of the Result
Result
at index
public Result getResultForName(String name)
Result
with name name
in this
ResultSet
.
name
- the name of the Result
Result
with name name
public Result[] getResults()
Result
s.
Result
spublic int getNumberOfResults()
Result
s in this ResultSet
Result
spublic StringBuffer toXML()
Storable
StringBuffer
of an
instance of the implementing class.
toXML
in interface Storable
protected void fromXML(StringBuffer representation) throws NonParsableException
ResultSet
from its XML representation as
returned by toXML()
.
representation
- the XML representation as StringBuffer
NonParsableException
- if the XML code could not be parsedpublic String toString()
toString
in class Object
public int findColumn(String columnName)
columnName
- the name of the column
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |