public virtual void Bind(Env env)
 {
     if (holidays != null)
     {
         foreach (KeyValuePair <string, JollyDayHolidays.JollyHoliday> holidayEntry in holidays)
         {
             JollyDayHolidays.JollyHoliday jh = holidayEntry.Value;
             env.Bind(varPrefix + holidayEntry.Key, jh);
         }
     }
 }
        public virtual CollectionValuedMap <string, JollyDayHolidays.JollyHoliday> GetAllHolidaysCVMap(ICollection <Holiday> allHolidays)
        {
            CollectionValuedMap <string, JollyDayHolidays.JollyHoliday> map = new CollectionValuedMap <string, JollyDayHolidays.JollyHoliday>();

            foreach (Holiday h in allHolidays)
            {
                string descKey = h.GetDescriptionPropertiesKey();
                if (descKey != null)
                {
                    descKey = descKey.ReplaceAll(".*\\.", string.Empty);
                    JollyDayHolidays.JollyHoliday jh = new JollyDayHolidays.JollyHoliday(descKey, holidayManager, h);
                    map.Add(jh.label, jh);
                }
            }
            return(map);
        }
        public virtual IDictionary <string, JollyDayHolidays.JollyHoliday> GetAllHolidaysMap(ICollection <Holiday> allHolidays)
        {
            IDictionary <string, JollyDayHolidays.JollyHoliday> map = Generics.NewHashMap();

            foreach (Holiday h in allHolidays)
            {
                string descKey = h.GetDescriptionPropertiesKey();
                if (descKey != null)
                {
                    descKey = descKey.ReplaceAll(".*\\.", string.Empty);
                    JollyDayHolidays.JollyHoliday jh = new JollyDayHolidays.JollyHoliday(descKey, holidayManager, h);
                    map[jh.label] = jh;
                }
            }
            return(map);
        }