com.ibm.icu.util
Class SimpleHoliday

java.lang.Object
  |
  +--com.ibm.icu.util.Holiday
        |
        +--com.ibm.icu.util.SimpleHoliday
All Implemented Interfaces:
DateRule

public class SimpleHoliday
extends Holiday

A holiday whose date can be represented by a SimpleDateRule object

See Also:
SimpleDateRule

Field Summary
static SimpleHoliday ALL_SAINTS_DAY
          All Saints' Day, November 1st
static SimpleHoliday ALL_SOULS_DAY
          All Souls' Day, November 1st
static SimpleHoliday ASSUMPTION
          Assumption, August 15th
static SimpleHoliday BOXING_DAY
          Boxing Day, December 26th
static SimpleHoliday CHRISTMAS
          Christmas, December 25th
static SimpleHoliday CHRISTMAS_EVE
          Christmas Eve, December 24th
static SimpleHoliday EPIPHANY
          Epiphany, January 6th
static SimpleHoliday IMMACULATE_CONCEPTION
          Immaculate Conception, December 8th
static SimpleHoliday MAY_DAY
          May Day, May 1st
static SimpleHoliday NEW_YEARS_DAY
          New Year's Day - January 1st
static SimpleHoliday NEW_YEARS_EVE
          New Year's Eve, December 31st
static SimpleHoliday ST_STEPHENS_DAY
          Saint Stephen's Day, December 26th
 
Constructor Summary
SimpleHoliday(int month, int dayOfMonth, int dayOfWeek, java.lang.String name)
          // TODO: remove Construct an object representing a holiday
SimpleHoliday(int month, int dayOfMonth, int dayOfWeek, java.lang.String name, int startYear)
           
SimpleHoliday(int month, int dayOfMonth, int dayOfWeek, java.lang.String name, int startYear, int endYear)
           
SimpleHoliday(int month, int dayOfMonth, java.lang.String name)
          Construct an object representing a holiday
SimpleHoliday(int month, int dayOfMonth, java.lang.String name, int startYear)
          Construct an object representing a holiday
SimpleHoliday(int month, int dayOfMonth, java.lang.String name, int startYear, int endYear)
          Construct an object representing a holiday
 
Methods inherited from class com.ibm.icu.util.Holiday
firstAfter, firstBetween, getDisplayName, getDisplayName, getHolidays, getHolidays, getRule, isBetween, isOn, setRule
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NEW_YEARS_DAY

public static final SimpleHoliday NEW_YEARS_DAY
New Year's Day - January 1st

EPIPHANY

public static final SimpleHoliday EPIPHANY
Epiphany, January 6th

MAY_DAY

public static final SimpleHoliday MAY_DAY
May Day, May 1st

ASSUMPTION

public static final SimpleHoliday ASSUMPTION
Assumption, August 15th

ALL_SAINTS_DAY

public static final SimpleHoliday ALL_SAINTS_DAY
All Saints' Day, November 1st

ALL_SOULS_DAY

public static final SimpleHoliday ALL_SOULS_DAY
All Souls' Day, November 1st

IMMACULATE_CONCEPTION

public static final SimpleHoliday IMMACULATE_CONCEPTION
Immaculate Conception, December 8th

CHRISTMAS_EVE

public static final SimpleHoliday CHRISTMAS_EVE
Christmas Eve, December 24th

CHRISTMAS

public static final SimpleHoliday CHRISTMAS
Christmas, December 25th

BOXING_DAY

public static final SimpleHoliday BOXING_DAY
Boxing Day, December 26th

ST_STEPHENS_DAY

public static final SimpleHoliday ST_STEPHENS_DAY
Saint Stephen's Day, December 26th

NEW_YEARS_EVE

public static final SimpleHoliday NEW_YEARS_EVE
New Year's Eve, December 31st
Constructor Detail

SimpleHoliday

public SimpleHoliday(int month,
                     int dayOfMonth,
                     java.lang.String name)
Construct an object representing a holiday
Parameters:
month - The month in which this holiday occurs (0-based)
dayOfMonth - The date within the month (1-based).
name - The name of this holiday. This string is used as a key to look up the holiday's name a resource bundle. If the name is not found in the resource bundle, getDisplayName will return this string instead.
See Also:
SimpleDateRule, Holiday.getDisplayName(java.util.Locale)

SimpleHoliday

public SimpleHoliday(int month,
                     int dayOfMonth,
                     java.lang.String name,
                     int startYear)
Construct an object representing a holiday
Parameters:
month - The month in which this holiday occurs (0-based)
dayOfMonth - The date within the month (1-based).
name - The name of this holiday. This string is used as a key to look up the holiday's name a resource bundle. If the name is not found in the resource bundle, getDisplayName will return this string instead.
See Also:
SimpleDateRule, Holiday.getDisplayName(java.util.Locale)

SimpleHoliday

public SimpleHoliday(int month,
                     int dayOfMonth,
                     java.lang.String name,
                     int startYear,
                     int endYear)
Construct an object representing a holiday
Parameters:
month - The month in which this holiday occurs (0-based)
dayOfMonth - The date within the month (1-based).
name - The name of this holiday. This string is used as a key to look up the holiday's name a resource bundle. If the name is not found in the resource bundle, getDisplayName will return this string instead.
See Also:
SimpleDateRule, Holiday.getDisplayName(java.util.Locale)

SimpleHoliday

public SimpleHoliday(int month,
                     int dayOfMonth,
                     int dayOfWeek,
                     java.lang.String name)
// TODO: remove Construct an object representing a holiday
Parameters:
month - The month in which this holiday occurs (0-based)
dayOfMonth - A date within the month (1-based). The interpretation of this parameter depends on the value of dayOfWeek.
dayOfWeek - The day of the week on which this holiday occurs. The following values are legal:
  • dayOfWeek == 0 - use dayOfMonth only
  • dayOfWeek < 0 - use last -dayOfWeek before or on dayOfMonth
  • dayOfWeek > 0 - use first dayOfWeek after or on dayOfMonth
name - The name of this holiday. This string is used as a key to look up the holiday's name a resource bundle. If the name is not found in the resource bundle, getDisplayName will return this string instead.
See Also:
SimpleDateRule, Holiday.getDisplayName(java.util.Locale)

SimpleHoliday

public SimpleHoliday(int month,
                     int dayOfMonth,
                     int dayOfWeek,
                     java.lang.String name,
                     int startYear)

SimpleHoliday

public SimpleHoliday(int month,
                     int dayOfMonth,
                     int dayOfWeek,
                     java.lang.String name,
                     int startYear,
                     int endYear)


Copyright (c) 2001 IBM Corporation and others.