String min = pAttributes.getValue(XML_ATTR_MIN);
String max = pAttributes.getValue(XML_ATTR_MAX);
String night = pAttributes.getValue(XML_ATTR_NIGHT);
String eve = pAttributes.getValue(XML_ATTR_EVE);
String morn = pAttributes.getValue(XML_ATTR_MORN);
WeatherData reference = getReference();
try {
reference.setTempDay(Double.valueOf(day));
} catch (Exception ex) {
reference.setTempDay(Double.NaN);
log.error(ex, ex);
}
try {
reference.setTempMin(Double.valueOf(min));
} catch (Exception ex) {
reference.setTempMin(Double.NaN);
log.error(ex, ex);
}
try {
reference.setTempMax(Double.valueOf(max));
} catch (Exception ex) {
reference.setTempMax(Double.NaN);
log.error(ex, ex);
}
try {
reference.setTempNight(Double.valueOf(night));
} catch (Exception ex) {
reference.setTempNight(Double.NaN);
log.error(ex, ex);
}
try {
reference.setTempEvening(Double.valueOf(eve));
} catch (Exception ex) {
reference.setTempEvening(Double.NaN);
log.error(ex, ex);
}
try {
reference.setTempMorning(Double.valueOf(morn));
} catch (Exception ex) {
reference.setTempMorning(Double.NaN);
log.error(ex, ex);
}
}