final char c = valueElement.getValueAsChar();
return new String("" + c);
} else if (datatype == Datatype.CHOICE) {
// REVIEW kirk 2009-10-22 -- How do we extract this? Intentionally fall through.
} else if (datatype == Datatype.DATE) {
final Datetime date = valueElement.getValueAsDate();
return date.toString();
} else if (datatype == Datatype.DATETIME) {
// REVIEW kirk 2009-10-22 -- This is clearly wrong.
final Datetime date = valueElement.getValueAsDatetime();
return date.toString();
//return date.calendar().getTime();
} else if (datatype == Datatype.ENUMERATION) {
return valueElement.getValueAsString();
} else if (datatype == Datatype.FLOAT32) {
return valueElement.getValueAsFloat32();
} else if (datatype == Datatype.FLOAT64) {
return valueElement.getValueAsFloat64();
} else if (datatype == Datatype.INT32) {
return valueElement.getValueAsInt32();
} else if (datatype == Datatype.INT64) {
return valueElement.getValueAsInt64();
} else if (datatype == Datatype.TIME) {
// REVIEW kirk 2009-10-22 -- This is clearly wrong.
final Datetime date = valueElement.getValueAsDate();
return date.toString();
//return date.calendar().getTime();
} else if (datatype == Datatype.SEQUENCE) {
final int numValues = valueElement.numValues();
final List<FudgeMsg> valueAsList = new ArrayList<FudgeMsg>(numValues);
for (int i = 0; i < numValues; i++) {