* @throws RepositoryException if an unexpected error occurs
*/
private void getDctmAttribute(String name, int dataType, List<Value> values)
throws RepositoryException {
for (int i = 0, n = object.getValueCount(name); i < n; i++) {
IValue val = object.getRepeatingValue(name, i);
try {
switch (dataType) {
case IAttr.DM_BOOLEAN:
values.add(Value.getBooleanValue(val.asBoolean()));
break;
case IAttr.DM_DOUBLE:
values.add(Value.getDoubleValue(val.asDouble()));
break;
case IAttr.DM_ID:
// TODO: Should we check for null here?
values.add(Value.getStringValue(val.asId().getId()));
break;
case IAttr.DM_INTEGER:
values.add(Value.getLongValue(val.asInteger()));
break;
case IAttr.DM_STRING:
values.add(Value.getStringValue(val.asString()));
break;
case IAttr.DM_TIME:
Date date = val.asTime().getDate();
if (date != null) {
values.add(Value.getDateValue(getCalendarFromDate(date)));
}
break;
default: