com.ibm.icu.util
Class SimpleHoliday

java.lang.Object
  extended bycom.ibm.icu.util.Holiday
      extended bycom.ibm.icu.util.SimpleHoliday
All Implemented Interfaces:
DateRule

Deprecated. This is a draft API and might change in a future release of ICU.

public class SimpleHoliday
extends Holiday

A holiday whose date can be represented by a month, day, and optionally day of week in the Gregorian calendar.

Status:
Draft ICU 2.8.
Status:
Deprecated in This is a draft API and might change in a future release of ICU..

Field Summary
static SimpleHoliday ALL_SAINTS_DAY
          Deprecated. This is a draft API and might change in a future release of ICU.
static SimpleHoliday ALL_SOULS_DAY
          Deprecated. This is a draft API and might change in a future release of ICU.
static SimpleHoliday ASSUMPTION
          Deprecated. This is a draft API and might change in a future release of ICU.
static SimpleHoliday BOXING_DAY
          Deprecated. This is a draft API and might change in a future release of ICU.
static SimpleHoliday CHRISTMAS
          Deprecated. This is a draft API and might change in a future release of ICU.
static SimpleHoliday CHRISTMAS_EVE
          Deprecated. This is a draft API and might change in a future release of ICU.
static SimpleHoliday EPIPHANY
          Deprecated. This is a draft API and might change in a future release of ICU.
static SimpleHoliday IMMACULATE_CONCEPTION
          Deprecated. This is a draft API and might change in a future release of ICU.
static SimpleHoliday MAY_DAY
          Deprecated. This is a draft API and might change in a future release of ICU.
static SimpleHoliday NEW_YEARS_DAY
          Deprecated. This is a draft API and might change in a future release of ICU.
static SimpleHoliday NEW_YEARS_EVE
          Deprecated. This is a draft API and might change in a future release of ICU.
static SimpleHoliday ST_STEPHENS_DAY
          Deprecated. This is a draft API and might change in a future release of ICU.
 
Constructor Summary
SimpleHoliday(int month, int dayOfMonth, int dayOfWeek, String name)
          Deprecated. This is a draft API and might change in a future release of ICU.
SimpleHoliday(int month, int dayOfMonth, int dayOfWeek, String name, int startYear)
          Deprecated. This is a draft API and might change in a future release of ICU.
SimpleHoliday(int month, int dayOfMonth, int dayOfWeek, String name, int startYear, int endYear)
          Deprecated. This is a draft API and might change in a future release of ICU.
SimpleHoliday(int month, int dayOfMonth, String name)
          Deprecated. This is a draft API and might change in a future release of ICU.
SimpleHoliday(int month, int dayOfMonth, String name, int startYear)
          Deprecated. This is a draft API and might change in a future release of ICU.
SimpleHoliday(int month, int dayOfMonth, String name, int startYear, int endYear)
          Deprecated. This is a draft API and might change in a future release of ICU.
 
Methods inherited from class com.ibm.icu.util.Holiday
firstAfter, firstBetween, getDisplayName, getDisplayName, getDisplayName, getHolidays, 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
Deprecated. This is a draft API and might change in a future release of ICU.

New Year's Day - January 1st

Status:
Draft ICU 2.8.
Status:
Deprecated in This is a draft API and might change in a future release of ICU..

EPIPHANY

public static final SimpleHoliday EPIPHANY
Deprecated. This is a draft API and might change in a future release of ICU.

Epiphany, January 6th

Status:
Draft ICU 2.8.
Status:
Deprecated in This is a draft API and might change in a future release of ICU..

MAY_DAY

public static final SimpleHoliday MAY_DAY
Deprecated. This is a draft API and might change in a future release of ICU.

May Day, May 1st

Status:
Draft ICU 2.8.
Status:
Deprecated in This is a draft API and might change in a future release of ICU..

ASSUMPTION

public static final SimpleHoliday ASSUMPTION
Deprecated. This is a draft API and might change in a future release of ICU.

Assumption, August 15th

Status:
Draft ICU 2.8.
Status:
Deprecated in This is a draft API and might change in a future release of ICU..

ALL_SAINTS_DAY

public static final SimpleHoliday ALL_SAINTS_DAY
Deprecated. This is a draft API and might change in a future release of ICU.

All Saints' Day, November 1st

Status:
Draft ICU 2.8.
Status:
Deprecated in This is a draft API and might change in a future release of ICU..

ALL_SOULS_DAY

public static final SimpleHoliday ALL_SOULS_DAY
Deprecated. This is a draft API and might change in a future release of ICU.

All Souls' Day, November 1st

Status:
Draft ICU 2.8.
Status:
Deprecated in This is a draft API and might change in a future release of ICU..

IMMACULATE_CONCEPTION

public static final SimpleHoliday IMMACULATE_CONCEPTION
Deprecated. This is a draft API and might change in a future release of ICU.

Immaculate Conception, December 8th

Status:
Draft ICU 2.8.
Status:
Deprecated in This is a draft API and might change in a future release of ICU..

CHRISTMAS_EVE

public static final SimpleHoliday CHRISTMAS_EVE
Deprecated. This is a draft API and might change in a future release of ICU.

Christmas Eve, December 24th

Status:
Draft ICU 2.8.
Status:
Deprecated in This is a draft API and might change in a future release of ICU..

CHRISTMAS

public static final SimpleHoliday CHRISTMAS
Deprecated. This is a draft API and might change in a future release of ICU.

Christmas, December 25th

Status:
Draft ICU 2.8.
Status:
Deprecated in This is a draft API and might change in a future release of ICU..

BOXING_DAY

public static final SimpleHoliday BOXING_DAY
Deprecated. This is a draft API and might change in a future release of ICU.

Boxing Day, December 26th

Status:
Draft ICU 2.8.
Status:
Deprecated in This is a draft API and might change in a future release of ICU..

ST_STEPHENS_DAY

public static final SimpleHoliday ST_STEPHENS_DAY
Deprecated. This is a draft API and might change in a future release of ICU.

Saint Stephen's Day, December 26th

Status:
Draft ICU 2.8.
Status:
Deprecated in This is a draft API and might change in a future release of ICU..

NEW_YEARS_EVE

public static final SimpleHoliday NEW_YEARS_EVE
Deprecated. This is a draft API and might change in a future release of ICU.

New Year's Eve, December 31st

Status:
Draft ICU 2.8.
Status:
Deprecated in This is a draft API and might change in a future release of ICU..
Constructor Detail

SimpleHoliday

public SimpleHoliday(int month,
                     int dayOfMonth,
                     String name)
Deprecated. This is a draft API and might change in a future release of ICU.

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:
Holiday.getDisplayName(java.util.Locale)
Status:
Draft ICU 2.8.
Status:
Deprecated in This is a draft API and might change in a future release of ICU..

SimpleHoliday

public SimpleHoliday(int month,
                     int dayOfMonth,
                     String name,
                     int startYear)
Deprecated. This is a draft API and might change in a future release of ICU.

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:
Holiday.getDisplayName(java.util.Locale)
Status:
Draft ICU 2.8.
Status:
Deprecated in This is a draft API and might change in a future release of ICU..

SimpleHoliday

public SimpleHoliday(int month,
                     int dayOfMonth,
                     String name,
                     int startYear,
                     int endYear)
Deprecated. This is a draft API and might change in a future release of ICU.

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:
Holiday.getDisplayName(java.util.Locale)
Status:
Draft ICU 2.8.
Status:
Deprecated in This is a draft API and might change in a future release of ICU..

SimpleHoliday

public SimpleHoliday(int month,
                     int dayOfMonth,
                     int dayOfWeek,
                     String name)
Deprecated. This is a draft API and might change in a future release of ICU.

// 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:
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:
Holiday.getDisplayName(java.util.Locale)
Status:
Draft ICU 2.8.
Status:
Deprecated in This is a draft API and might change in a future release of ICU..

SimpleHoliday

public SimpleHoliday(int month,
                     int dayOfMonth,
                     int dayOfWeek,
                     String name,
                     int startYear)
Deprecated. This is a draft API and might change in a future release of ICU.

Status:
Draft ICU 2.8.
Status:
Deprecated in This is a draft API and might change in a future release of ICU..

SimpleHoliday

public SimpleHoliday(int month,
                     int dayOfMonth,
                     int dayOfWeek,
                     String name,
                     int startYear,
                     int endYear)
Deprecated. This is a draft API and might change in a future release of ICU.

Status:
Draft ICU 2.8.
Status:
Deprecated in This is a draft API and might change in a future release of ICU..


Copyright (c) 2004 IBM Corporation and others.