public class UncastData extends java.lang.Object implements IAnswerData
Modifier and Type | Field and Description |
---|---|
(package private) java.lang.String |
value |
Constructor and Description |
---|
UncastData() |
UncastData(java.lang.String value) |
Modifier and Type | Method and Description |
---|---|
UncastData |
cast(UncastData data)
Casts the provided data into this data type.
|
IAnswerData |
clone() |
java.lang.String |
getDisplayText() |
java.lang.String |
getString() |
java.lang.Object |
getValue() |
void |
readExternal(java.io.DataInputStream in,
PrototypeFactory pf) |
void |
setValue(java.lang.Object o) |
UncastData |
uncast()
Data types can be uncast if they are expected to be used
in different contexts.
|
void |
writeExternal(java.io.DataOutputStream out) |
public UncastData()
public UncastData(java.lang.String value)
public IAnswerData clone()
clone
in interface IAnswerData
clone
in class java.lang.Object
public java.lang.String getDisplayText()
getDisplayText
in interface IAnswerData
public java.lang.Object getValue()
getValue
in interface IAnswerData
public void setValue(java.lang.Object o)
setValue
in interface IAnswerData
o
- the value of this answerdata object. Cannot be null.
Null Data will not overwrite existing values.public java.lang.String getString()
public void readExternal(java.io.DataInputStream in, PrototypeFactory pf) throws java.io.IOException, DeserializationException
readExternal
in interface Externalizable
java.io.IOException
DeserializationException
public void writeExternal(java.io.DataOutputStream out) throws java.io.IOException
writeExternal
in interface Externalizable
java.io.IOException
public UncastData uncast()
IAnswerData
uncast
in interface IAnswerData
public UncastData cast(UncastData data)
IAnswerData
cast
in interface IAnswerData
data
- An uncast data value which is compatible
with this data type