Package net.sf.nachocalendar.holidays

Examples of net.sf.nachocalendar.holidays.HoliDayModel


public class NachoCalendarFactory
{
  public static HoliDayModel brazilianHolidayModel(int year)
  {
    HoliDayModel model = new HoliDayModel();
   
    Set<Holiday> set = ReflectionUtils.getEnumInstances(Holiday.class);
    for (Holiday holiday: set)
    {
      System.out.print(holiday + "  ");
      HoliDay h = new DefaultHoliDay();
      h.setName(holiday.displayName());
      System.out.println(holiday.get(year));
      h.setDate(holiday.get(year));
      h.setRecurrent(true);
      model.addHoliDay(h);
    }
   
    return model;
  }
View Full Code Here

TOP

Related Classes of net.sf.nachocalendar.holidays.HoliDayModel

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.