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, getOriginalName, isCastableResult, isComparableResult, rename
getComment, getDatatype, getName, getXMLTag, toXML
protected 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 StringBuffer
NonParsableException
- if the representation could not be parsed.protected void appendFurtherInfos(StringBuffer buf)
AnnotatedEntity
Storable.toXML()
to extract
further information (name, comment, datatype).appendFurtherInfos
in class Result
buf
- a XML representation of the main information as
StringBuffer
Storable.toXML()
protected void extractFurtherInfos(StringBuffer representation) throws NonParsableException
AnnotatedEntity
StringBuffer
to
extract the further information.extractFurtherInfos
in class Result
representation
- a XML represenation of the main information as
StringBuffer
NonParsableException
- if the XML representation is not parsableAnnotatedEntity.AnnotatedEntity(StringBuffer)
public Comparable getValue()
AnnotatedEntity
AnnotatedEntity
.getValue
in class AnnotatedEntity
AnnotatedEntity
public int compareTo(SimpleResult r)
compareTo
in interface Comparable<SimpleResult>