use of org.javarosa.core.model.IAnswerDataSerializer in project javarosa by opendatakit.
the class XFormAnswerDataSerializer method retrieveExternalDataPointer.
public IDataPointer[] retrieveExternalDataPointer(IAnswerData data) {
for (IAnswerDataSerializer serializer : additionalSerializers) {
Boolean contains = serializer.containsExternalData(data);
if (contains != null) {
return serializer.retrieveExternalDataPointer(data);
}
}
if (data instanceof PointerAnswerData) {
IDataPointer[] pointer = new IDataPointer[1];
pointer[0] = (IDataPointer) ((PointerAnswerData) data).getValue();
return pointer;
} else if (data instanceof MultiPointerAnswerData) {
return (IDataPointer[]) ((MultiPointerAnswerData) data).getValue();
}
// This shouldn't have been called.
return null;
}
Aggregations