public interface IAnswerDataSerializer
Modifier and Type | Method and Description |
---|---|
boolean |
canSerialize(IAnswerData element)
Identifies whether this serializer can turn the AnswerData
object inside of the given element into an external format.
|
java.lang.Boolean |
containsExternalData(IAnswerData data)
Identifies whether an answer data object contains data
that needs to be extracted to be handled differently
than the serialized answer data.
|
void |
registerAnswerSerializer(IAnswerDataSerializer ads)
Extends the serializing capabilities of this serializer
by registering another, and allowing this serializer
to operate on all of the data types that the argument
can.
|
IDataPointer[] |
retrieveExternalDataPointer(IAnswerData data)
Retrieves a pointer to external data contained in the
provided answer data, if one exists.
|
java.lang.Object |
serializeAnswerData(IAnswerData data)
Serializes the given data object into a format that can
be stored externally.
|
java.lang.Object |
serializeAnswerData(IAnswerData data,
int dataType)
Serializes the given data object into a format that can
be stored externally using the defined schemas
|
boolean canSerialize(IAnswerData element)
element
- The element whose data is to be serialzedjava.lang.Object serializeAnswerData(IAnswerData data, int dataType)
element
- The element whose data is to be serialzedschema
- the schema containing the necessary bindings to determine
the elements data typejava.lang.Object serializeAnswerData(IAnswerData data)
data
- The element whose data is to be serialzedvoid registerAnswerSerializer(IAnswerDataSerializer ads)
ads
- An IAnswerDataSerializerjava.lang.Boolean containsExternalData(IAnswerData data)
data
- The answer data that should be checked.IDataPointer[] retrieveExternalDataPointer(IAnswerData data)
data
- The answer data that contains the pointer.
containsExternalData should return true for this data.