public abstract class SimpleResult extends Result implements Comparable<SimpleResult>
Result| Modifier and Type | Field and Description |
|---|---|
protected Comparable |
result
The result.
|
comment, datatype, name| Modifier | Constructor and Description |
|---|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
checkDatatype, createResult, isCastableResult, isComparableResultgetComment, getDatatype, getName, getXMLTag, toXMLprotected Comparable result
protected SimpleResult(String name, String comment, DataType datatype)
name - the name of the resultcomment - the comment for the resultdatatype - the data type of the resultprotected 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 StringBufferNonParsableException - if the representation could not be parsed.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
StringBufferNonParsableException - if the XML representation is not parsableAnnotatedEntity.AnnotatedEntity(StringBuffer)public Comparable getValue()
AnnotatedEntityAnnotatedEntity.getValue in class AnnotatedEntityAnnotatedEntitypublic int compareTo(SimpleResult r)
compareTo in interface Comparable<SimpleResult>