public class GeoShapeData extends java.lang.Object implements IAnswerData, IExprDataType
Modifier and Type | Class and Description |
---|---|
static class |
GeoShapeData.GeoShape
The data value contained in a GeoShapeData object is a GeoShape
|
Modifier and Type | Field and Description |
---|---|
java.util.ArrayList<GeoPointData> |
points |
Constructor and Description |
---|
GeoShapeData()
Empty Constructor, necessary for dynamic construction during
deserialization.
|
GeoShapeData(GeoShapeData.GeoShape ashape) |
GeoShapeData(GeoShapeData data)
Copy constructor (deep)
|
Modifier and Type | Method and Description |
---|---|
GeoShapeData |
cast(UncastData data)
Casts the provided data into this data type.
|
IAnswerData |
clone() |
java.lang.String |
getDisplayText() |
java.lang.Object |
getValue() |
void |
readExternal(java.io.DataInputStream in,
PrototypeFactory pf) |
void |
setValue(java.lang.Object o) |
java.lang.Boolean |
toBoolean() |
java.lang.Double |
toNumeric() |
java.lang.String |
toString() |
UncastData |
uncast()
Data types can be uncast if they are expected to be used
in different contexts.
|
void |
writeExternal(java.io.DataOutputStream out) |
public final java.util.ArrayList<GeoPointData> points
public GeoShapeData()
public GeoShapeData(GeoShapeData data)
data
- public GeoShapeData(GeoShapeData.GeoShape ashape)
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 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 GeoShapeData cast(UncastData data) throws java.lang.IllegalArgumentException
IAnswerData
cast
in interface IAnswerData
data
- An uncast data value which is compatible
with this data typejava.lang.IllegalArgumentException
- If the uncast data is
not in a compatible formatpublic java.lang.Boolean toBoolean()
toBoolean
in interface IExprDataType
public java.lang.Double toNumeric()
toNumeric
in interface IExprDataType
public java.lang.String toString()
toString
in interface IExprDataType
toString
in class java.lang.Object