Package org.jbpm.cal

Examples of org.jbpm.cal.Day


   
    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;
  }
View Full Code Here

TOP

Related Classes of org.jbpm.cal.Day

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.