|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jstacs.results.Result
de.jstacs.results.ListResult
public class ListResult
Class for a Result that contains a list or a matrix, respectively, of ResultSets.
This class provides a way to build a hierarchy of Results and ResultSets, or to create multi-dimensional Result.
| Field Summary | |
|---|---|
protected ResultSet[] |
list
The internal list of ResultSets that are part of this ListResult |
| Fields inherited from class de.jstacs.results.Result |
|---|
comment, datatype, name |
| Constructor Summary | |
|---|---|
ListResult(StringBuffer representation)
Creates a new ListResult from the corresponding XML-representation. |
|
ListResult(String name,
String comment,
ResultSet annotation,
ResultSet... results)
Creates a new ListResult from an array of ResultSets and a ResultSet
of annotations, which may provide additional information on this ListResult |
|
| Method Summary | |
|---|---|
protected void |
fromXML(StringBuffer representation)
This method is used in Result.Result(StringBuffer) to extract the information. |
ResultSet |
getAnnotation()
Returns a reference to the annotation of this ListResult |
ResultSet[] |
getRawResult()
Returns a copy of the internal list of ResultSet. |
ResultSet[] |
getResult()
Returns the value of the result. |
void |
print(PrintWriter writer)
Prints the information of this ListResult to the provided PrintWriter. |
ListResult |
sort(String columnName)
This method enables you to sort the entrys of this container by a specified column. |
String |
toString()
|
StringBuffer |
toXML()
This method returns an XML-representation of an instance of the implementing class. |
| Methods inherited from class de.jstacs.results.Result |
|---|
appendMainInfo, checkDatatype, createResult, extractMainInfo, getComment, getDatatype, getName, isCastableResult, isComparableResult |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected ResultSet[] list
ResultSets that are part of this ListResult
| Constructor Detail |
|---|
public ListResult(String name,
String comment,
ResultSet annotation,
ResultSet... results)
ListResult from an array of ResultSets and a ResultSet
of annotations, which may provide additional information on this ListResult
name - the name of the ListResultcomment - the comment on the ListResultannotation - an annotation on this ListResultresults - the results
public ListResult(StringBuffer representation)
throws NonParsableException
ListResult from the corresponding XML-representation.
representation - the XML-representation
NonParsableException - is thrown if representation could not be parsed| Method Detail |
|---|
public ResultSet[] getResult()
Result
getResult in class Resultpublic ResultSet[] getRawResult()
ResultSet. The references
to the ResultSet in the array are not cloned.
ResultSetspublic ResultSet getAnnotation()
ListResult
public StringBuffer toXML()
Storable
protected void fromXML(StringBuffer representation)
throws NonParsableException
ResultResult.Result(StringBuffer) to extract the information.
The method can be seen as opposite of Storable.toXML() and should not be made public.
fromXML in class Resultrepresentation - a xml represenation
NonParsableException - if the xml representation is not parsableResult.extractMainInfo(StringBuffer)public String toString()
toString in class Objectpublic void print(PrintWriter writer)
ListResult to the provided PrintWriter.
writer - the writer
public ListResult sort(String columnName)
throws IllegalArgumentException
columnName - the name of the column to be sorted
IllegalArgumentException - if not all entries have a column with this name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||