public CalendarDateCalculator getDateCalculator ( final String name , final String holidayHandlerType ) { final CalendarDateCalculator cal = new CalendarDateCalculator ( ) ; cal . setName ( name ) ; setHolidays ( name , cal ) ; if ( holidayHandlerType != null ) { cal . setHolidayHandler ( getHolidayHandler ( holidayHandlerType ) ) ; } return cal ; }
Create a new DateCalculator for a given name and type of handling .