de.jstacs.results
Class CategoricalResult
java.lang.Object
de.jstacs.AnnotatedEntity
de.jstacs.results.Result
de.jstacs.results.SimpleResult
de.jstacs.results.CategoricalResult
- All Implemented Interfaces:
- Storable, Comparable<SimpleResult>
public class CategoricalResult
- extends SimpleResult
A class for categorical results (i.e. non-numerical results) for primitives
and String
s.
- Author:
- Jan Grau
Method Summary |
String |
getXMLTag()
This method returns a tag used as outer tag of the XML description. |
CategoricalResult
public CategoricalResult(StringBuffer representation)
throws NonParsableException
- The standard constructor for the interface
Storable
.
Creates a new CategoricalResult
from its XML representation.
- Parameters:
representation
- the XML representation as StringBuffer
- Throws:
NonParsableException
- if the StringBuffer
representation
could
not be parsed
CategoricalResult
public CategoricalResult(DataType datatype,
String name,
String comment,
Comparable result)
throws SimpleParameter.IllegalValueException
- Creates a result of a primitive categorical data type or a
String
.
- Parameters:
datatype
- the primitive data typename
- the name of the resultcomment
- a comment on the resultresult
- the result itself
- Throws:
SimpleParameter.IllegalValueException
- if the result value is not of the expected data type
CategoricalResult
public CategoricalResult(String name,
String comment,
String result)
- Creates a result of a
String
.
- Parameters:
name
- the name of the resultcomment
- a comment on the resultresult
- the result itself
CategoricalResult
public CategoricalResult(String name,
String comment,
boolean result)
- Creates a result of a
boolean
.
- Parameters:
name
- the name of the resultcomment
- a comment on the resultresult
- the result itself
getXMLTag
public String getXMLTag()
- Description copied from class:
AnnotatedEntity
- This method returns a tag used as outer tag of the XML description.
- Specified by:
getXMLTag
in class AnnotatedEntity
- Returns:
- a tag used as outer tag of the XML description