return businessCalendar;
}
private Day parseDay(Element daysElement, String dayText, DateFormat hourFormat, BusinessCalendar businessCalendar, Parse parse) {
Day day = new Day();
day.setBusinessCalendar(businessCalendar);
Element dayElement = XmlUtil.element(daysElement, dayText);
if (dayElement!=null) {
DayPart[] dayParts = null;
List<Element> partElements = XmlUtil.elements(dayElement, "part");
if (partElements!=null) {
dayParts = new DayPart[partElements.size()];
for (int i=0; i<partElements.size(); i++) {
dayParts[i] = parseDayPart(partElements.get(i), day, i, hourFormat, parse);
}
}
day.setDayParts(dayParts);
} else {
parse.addProblem(dayText+" is not available in business calendar");
}
return day;
}