org.pentaho.reporting.engine.classic.core.modules.gui.base.date
Class AnnualDateRule

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.modules.gui.base.date.AnnualDateRule
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
DayAndMonthRule, DayOfWeekInMonthRule, EasterSundayRule, RelativeDayOfWeekRule

Deprecated.

public abstract class AnnualDateRule
extends Object
implements Cloneable

The base class for all 'annual' date rules: that is, rules for generating one date for any given year.

One example is Easter Sunday (which can be calculated using published algorithms).

Author:
David Gilbert

Method Summary
 Object clone()
          Deprecated. Returns a clone of the rule.
abstract  SerialDate getDate(int year)
          Deprecated. Returns the date for this rule, given the year.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDate

public abstract SerialDate getDate(int year)
Deprecated. 
Returns the date for this rule, given the year.

Parameters:
year - the year (1900 <= year <= 9999).
Returns:
the date for this rule, given the year.

clone

public Object clone()
             throws CloneNotSupportedException
Deprecated. 
Returns a clone of the rule.

You should refer to the documentation of the clone() method in each subclass for exact details.

Overrides:
clone in class Object
Returns:
a clone of the rule.
Throws:
CloneNotSupportedException - if the rule is not clonable.