public class CategoricalResult extends SimpleResult
String
s.result
comment, datatype, name
Constructor and Description |
---|
CategoricalResult(DataType datatype,
String name,
String comment,
Comparable result)
Creates a result of a primitive categorical data type or a
String
. |
CategoricalResult(StringBuffer representation)
The standard constructor for the interface
Storable . |
CategoricalResult(String name,
String comment,
boolean result)
Creates a result of a
boolean . |
CategoricalResult(String name,
String comment,
String result)
Creates a result of a
String . |
Modifier and Type | Method and Description |
---|---|
String |
getXMLTag()
This method returns a tag used as outer tag of the XML description.
|
appendFurtherInfos, compareTo, equals, extractFurtherInfos, getValue, toString
checkDatatype, createResult, getOriginalName, isCastableResult, isComparableResult, rename
getComment, getDatatype, getName, toXML
public CategoricalResult(StringBuffer representation) throws NonParsableException
Storable
.
Creates a new CategoricalResult
from its XML representation.representation
- the XML representation as StringBuffer
NonParsableException
- if the StringBuffer
representation
could
not be parsedpublic CategoricalResult(DataType datatype, String name, String comment, Comparable result) throws SimpleParameter.IllegalValueException
String
.datatype
- the primitive data typename
- the name of the resultcomment
- a comment on the resultresult
- the result itselfSimpleParameter.IllegalValueException
- if the result value is not of the expected data typepublic CategoricalResult(String name, String comment, String result)
String
.name
- the name of the resultcomment
- a comment on the resultresult
- the result itselfpublic String getXMLTag()
AnnotatedEntity
getXMLTag
in class AnnotatedEntity