ProjectResource[] resources = project.getHumanResourceManager().getResourcesArray();
for (int i = 0; i < resources.length; i++) {
HumanResource p = (HumanResource) resources[i];
if (p.getDaysOff() != null)
for (int j = 0; j < p.getDaysOff().size(); j++) {
GanttDaysOff gdo = (GanttDaysOff) p.getDaysOff()
.getElementAt(j);
addAttribute("start", gdo.getStart().toXMLString(), attrs);
addAttribute("end", gdo.getFinish().toXMLString(), attrs);
addAttribute("resourceid", String.valueOf(p.getId()), attrs);
emptyElement("vacation", attrs, handler);
}
}
endElement("vacations", handler);