public class SelectOneData extends Object implements IAnswerData
| Constructor and Description |
|---|
SelectOneData()
Empty Constructor, necessary for dynamic construction during deserialization.
|
SelectOneData(Selection s) |
| Modifier and Type | Method and Description |
|---|---|
SelectOneData |
cast(UncastData data)
Casts the provided data into this data type.
|
IAnswerData |
clone() |
boolean |
equals(Object o) |
String |
getDisplayText() |
Object |
getValue() |
int |
hashCode() |
void |
readExternal(DataInputStream in,
PrototypeFactory pf) |
void |
setValue(Object o) |
UncastData |
uncast()
Data types can be uncast if they are expected to be used
in different contexts.
|
void |
writeExternal(DataOutputStream out) |
finalize, getClass, notify, notifyAll, toString, wait, wait, waitwrapDatapublic SelectOneData()
public SelectOneData(Selection s)
public IAnswerData clone()
clone in interface IAnswerDataclone in class Objectpublic void setValue(Object o)
setValue in interface IAnswerDatao - the value of this answerdata object. Cannot be null.
Null Data will not overwrite existing values.@NotNull public Object getValue()
getValue in interface IAnswerDatapublic String getDisplayText()
getDisplayText in interface IAnswerDatapublic void readExternal(DataInputStream in, PrototypeFactory pf) throws IOException, DeserializationException
readExternal in interface ExternalizableIOExceptionDeserializationExceptionpublic void writeExternal(DataOutputStream out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic UncastData uncast()
IAnswerDatauncast in interface IAnswerDatapublic SelectOneData cast(UncastData data) throws IllegalArgumentException
IAnswerDatacast in interface IAnswerDatadata - An uncast data value which is compatible
with this data typeIllegalArgumentException - If the uncast data is
not in a compatible formatCopyright © 2024. All rights reserved.