net.objectlab.kit.datecalc.joda
Class LocalDateKitCalculatorsFactory

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

public class LocalDateKitCalculatorsFactory
extends AbstractKitCalculatorsFactory<LocalDate>

The default factory for getting Joda LocalDate based calculators.

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

Constructor Summary
LocalDateKitCalculatorsFactory()
           
 
Method Summary
 LocalDateCalculator getDateCalculator(String name, String holidayHandlerType)
          Create a new DateCalculator for a given name and type of handling.
static LocalDateKitCalculatorsFactory getDefaultInstance()
           
 IMMDateCalculator<LocalDate> getIMMDateCalculator()
          Create a new IMMDateCalculator.
 PeriodCountCalculator<LocalDate> getPeriodCountCalculator()
          Create a new PeriodCountCalculator.
 
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

LocalDateKitCalculatorsFactory

public LocalDateKitCalculatorsFactory()
Method Detail

getDefaultInstance

public static LocalDateKitCalculatorsFactory getDefaultInstance()

getDateCalculator

public LocalDateCalculator 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

getPeriodCountCalculator

public PeriodCountCalculator<LocalDate> getPeriodCountCalculator()
Description copied from interface: KitCalculatorsFactory
Create a new PeriodCountCalculator.

Returns:
a PeriodCountCalculator

getIMMDateCalculator

public IMMDateCalculator<LocalDate> getIMMDateCalculator()
Description copied from interface: KitCalculatorsFactory
Create a new IMMDateCalculator.

Returns:
an IMMDateCalculator


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