@Override
protected void readAttribute(TimerImpl timer, ModelNode toSet) {
if (!timer.isCalendarTimer()) {
return;
}
ScheduleExpression sched = timer.getSchedule();
addString(toSet, sched.getYear(), YEAR.getName());
addString(toSet, sched.getMonth(), MONTH.getName());
addString(toSet, sched.getDayOfMonth(), DAY_OF_MONTH.getName());
addString(toSet, sched.getDayOfWeek(), DAY_OF_WEEK.getName());
addString(toSet, sched.getHour(), HOUR.getName());
addString(toSet, sched.getMinute(), MINUTE.getName());
addString(toSet, sched.getSecond(), SECOND.getName());
addString(toSet, sched.getTimezone(), TIMEZONE.getName());
addDate(toSet, sched.getStart(), START.getName());
addDate(toSet, sched.getEnd(), END.getName());
}
private void addString(ModelNode schedNode, String value, String name) {
final ModelNode node = schedNode.get(name);
if (value != null) {