public class UncastData extends Object implements IAnswerData
| Constructor and Description |
|---|
UncastData() |
UncastData(String value) |
| Modifier and Type | Method and Description |
|---|---|
UncastData |
cast(UncastData data)
Casts the provided data into this data type.
|
IAnswerData |
clone() |
String |
getDisplayText() |
String |
getString() |
Object |
getValue() |
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) |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwrapDatapublic UncastData()
public UncastData(String value)
public IAnswerData clone()
clone in interface IAnswerDataclone in class Objectpublic String getDisplayText()
getDisplayText in interface IAnswerData@NotNull public Object getValue()
getValue in interface IAnswerDatapublic void setValue(Object o)
setValue in interface IAnswerDatao - the value of this answerdata object. Cannot be null.
Null Data will not overwrite existing values.public String getString()
public void readExternal(DataInputStream in, PrototypeFactory pf) throws IOException
readExternal in interface ExternalizableIOExceptionpublic void writeExternal(DataOutputStream out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic UncastData uncast()
IAnswerDatauncast in interface IAnswerDatapublic UncastData cast(UncastData data)
IAnswerDatacast in interface IAnswerDatadata - An uncast data value which is compatible
with this data typeCopyright © 2023. All rights reserved.