public interface IAnswerData extends Externalizable
Modifier and Type | Method and Description |
---|---|
IAnswerData |
cast(UncastData data)
Casts the provided data into this data type.
|
IAnswerData |
clone() |
java.lang.String |
getDisplayText() |
java.lang.Object |
getValue() |
void |
setValue(java.lang.Object o) |
UncastData |
uncast()
Data types can be uncast if they are expected to be used
in different contexts.
|
readExternal, writeExternal
void setValue(java.lang.Object o)
o
- the value of this answerdata object. Cannot be null.
Null Data will not overwrite existing values.java.lang.NullPointerException
- if o is nulljava.lang.Object getValue()
java.lang.String getDisplayText()
IAnswerData clone()
UncastData uncast()
IAnswerData cast(UncastData data) throws java.lang.IllegalArgumentException
data
- An uncast data value which is compatible
with this data typejava.lang.IllegalArgumentException
- If the uncast data is
not in a compatible format