return buildTemporalList(temporalElements);
} else if (name.endsWith("datatype")) {
return Date.class.getName();
} else {
SortedSet<? extends DateRange> temporalElements = temporalDomain.getTemporalElements(false, null);
DateRange overall = temporalElements.iterator().next();
// min or max requests
if (name.endsWith("maximum")) {
return ConvertersHack.convert(overall.getMaxValue(), String.class);
} else if (name.endsWith("minimum")) {
return ConvertersHack.convert(overall.getMinValue(), String.class);
} else {
throw new IllegalArgumentException("Unsupported metadata name");
}
}
} else if (domain instanceof AdditionalDomain) {