net.objectlab.kit.datecalc.joda
Class YearMonthDayKitCalculatorsFactory

Package class diagram package YearMonthDayKitCalculatorsFactory
java.lang.Object
  extended by net.objectlab.kit.datecalc.common.AbstractKitCalculatorsFactory<YearMonthDay>
      extended by net.objectlab.kit.datecalc.joda.YearMonthDayKitCalculatorsFactory
All Implemented Interfaces:
KitCalculatorsFactory<YearMonthDay>

public class YearMonthDayKitCalculatorsFactory
extends AbstractKitCalculatorsFactory<YearMonthDay>

The default factory for getting Joda YearMonthDay based calculators.

Version:
$Revision: 271 $ $Date: 2009-03-17 13:50:59 -0400 (Tue, 17 Mar 2009) $
Author:
Benoit Xhenseval, $LastChangedBy: marchy $

Constructor Summary
YearMonthDayKitCalculatorsFactory()
           
 
Method Summary
 DateCalculator<YearMonthDay> getDateCalculator(String name, String holidayHandlerType)
          Create a new DateCalculator for a given name and type of handling.
static KitCalculatorsFactory<YearMonthDay> getDefaultInstance()
           
 IMMDateCalculator<YearMonthDay> getIMMDateCalculator()
           
 PeriodCountCalculator<YearMonthDay> getPeriodCountCalculator()
           
 
Methods inherited from class net.objectlab.kit.datecalc.common.AbstractKitCalculatorsFactory
getHolidayCalendar, getRegisteredHolidayCalendarNames, isHolidayCalendarRegistered, registerHolidays, setHolidays, unregisterAllHolidayCalendars, unregisterHolidayCalendar
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

YearMonthDayKitCalculatorsFactory

public YearMonthDayKitCalculatorsFactory()
Method Detail

getDefaultInstance

public static KitCalculatorsFactory<YearMonthDay> getDefaultInstance()

getDateCalculator

public DateCalculator<YearMonthDay> getDateCalculator(String name,
                                                      String holidayHandlerType)
Create a new DateCalculator for a given name and type of handling.

Parameters:
name - calendar name (holidays set interested in). If there is set of holidays with that name, it will return a DateCalculator with an empty holiday set (will work on Weekend only).
holidayHandlerType - typically one of the value of HolidayHandlerType
Returns:
a new DateCalculator
Throws:
IllegalArgumentException - if name is null

getPeriodCountCalculator

public PeriodCountCalculator<YearMonthDay> getPeriodCountCalculator()

getIMMDateCalculator

public IMMDateCalculator<YearMonthDay> getIMMDateCalculator()


Copyright © 2006-2010 Appendium - Portfolio Financing Platform. All Rights Reserved.