throw new EPException("Invalid property name '" + propertyName + "': " + ex.getMessage(), ex);
}
if (propertyType == null) {
continue;
}
SimpleTypeParser parser;
if (propertyType == Date.class || propertyType == Calendar.class) {
final String df = dateFormat != null ? dateFormat : DateTime.DEFAULT_XMLLIKE_DATE_FORMAT;
if (propertyType == Date.class) {
parser = new SimpleTypeParser() {
public Object parse(String text) {
return DateTime.toDate(text, df);
}
};
}
else {
parser = new SimpleTypeParser() {
public Object parse(String text) {
return DateTime.toCalendar(text, df);
}
};
}