|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jstacs.AnnotatedEntity
de.jstacs.results.Result
de.jstacs.results.SimpleResult
public abstract class SimpleResult
Abstract class for a Result with a value of a primitive data type or
String.
Result| Field Summary | |
|---|---|
protected Comparable |
result
The result. |
| Fields inherited from class de.jstacs.AnnotatedEntity |
|---|
comment, datatype, name |
| Constructor Summary | |
|---|---|
protected |
SimpleResult(StringBuffer rep)
This is the constructor for Storable. |
protected |
SimpleResult(String name,
String comment,
DataType datatype)
The main constructor which takes the main information of a result. |
| Method Summary | |
|---|---|
protected void |
appendFurtherInfos(StringBuffer buf)
This method can be used in the method Storable.toXML() to extract
further information (name, comment, datatype). |
int |
compareTo(SimpleResult r)
|
boolean |
equals(Object arg)
|
protected void |
extractFurtherInfos(StringBuffer representation)
This method can be used in the constructor with parameter StringBuffer to
extract the further information. |
Comparable |
getValue()
Returns the value of the AnnotatedEntity. |
String |
toString()
|
| Methods inherited from class de.jstacs.results.Result |
|---|
checkDatatype, createResult, isCastableResult, isComparableResult |
| Methods inherited from class de.jstacs.AnnotatedEntity |
|---|
getComment, getDatatype, getName, getXMLTag, toXML |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Comparable result
| Constructor Detail |
|---|
protected SimpleResult(String name,
String comment,
DataType datatype)
name - the name of the resultcomment - the comment for the resultdatatype - the data type of the result
protected SimpleResult(StringBuffer rep)
throws NonParsableException
Storable. Creates a new
SimpleResult out of the XML representation as returned by
AnnotatedEntity.toXML().
rep - the XML representation as StringBuffer
NonParsableException - if the representation could not be parsed.| Method Detail |
|---|
protected void appendFurtherInfos(StringBuffer buf)
AnnotatedEntityStorable.toXML() to extract
further information (name, comment, datatype).
appendFurtherInfos in class AnnotatedEntitybuf - a XML representation of the main information as
StringBufferStorable.toXML()
protected void extractFurtherInfos(StringBuffer representation)
throws NonParsableException
AnnotatedEntityStringBuffer to
extract the further information.
extractFurtherInfos in class AnnotatedEntityrepresentation - a XML represenation of the main information as
StringBuffer
NonParsableException - if the XML representation is not parsableAnnotatedEntity.AnnotatedEntity(StringBuffer)public Comparable getValue()
AnnotatedEntityAnnotatedEntity.
getValue in class AnnotatedEntityAnnotatedEntitypublic String toString()
toString in class Objectpublic int compareTo(SimpleResult r)
compareTo in interface Comparable<SimpleResult>public boolean equals(Object arg)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||