001: /*
002: *******************************************************************************
003: * Copyright (C) 1996-2006, International Business Machines Corporation and *
004: * others. All Rights Reserved. *
005: *******************************************************************************
006: */
007:
008: package com.ibm.icu.util;
009:
010: /**
011: * @draft ICU 2.8 (retainAll)
012: * @provisional This API might change or be removed in a future release.
013: */
014: public class HebrewHoliday extends Holiday {
015: private static final HebrewCalendar gCalendar = new HebrewCalendar();
016:
017: /**
018: * Construct a holiday defined in reference to the Hebrew calendar.
019: *
020: * @param name The name of the holiday
021: * @draft ICU 2.8
022: * @provisional This API might change or be removed in a future release.
023: */
024: public HebrewHoliday(int month, int date, String name) {
025: this (month, date, 1, name);
026: }
027:
028: /**
029: * @draft ICU 2.8
030: * @provisional This API might change or be removed in a future release.
031: */
032: public HebrewHoliday(int month, int date, int length, String name) {
033: super (name, new SimpleDateRule(month, date, gCalendar));
034: }
035:
036: /**
037: * @draft ICU 2.8
038: * @provisional This API might change or be removed in a future release.
039: */
040: public static HebrewHoliday ROSH_HASHANAH = new HebrewHoliday(
041: HebrewCalendar.TISHRI, 1, 2, "Rosh Hashanah");
042:
043: /**
044: * @draft ICU 2.8
045: * @provisional This API might change or be removed in a future release.
046: */
047: public static HebrewHoliday GEDALIAH = new HebrewHoliday(
048: HebrewCalendar.TISHRI, 3, "Fast of Gedaliah");
049:
050: /**
051: * @draft ICU 2.8
052: * @provisional This API might change or be removed in a future release.
053: */
054: public static HebrewHoliday YOM_KIPPUR = new HebrewHoliday(
055: HebrewCalendar.TISHRI, 10, "Yom Kippur");
056:
057: /**
058: * @draft ICU 2.8
059: * @provisional This API might change or be removed in a future release.
060: */
061: public static HebrewHoliday SUKKOT = new HebrewHoliday(
062: HebrewCalendar.TISHRI, 15, 6, "Sukkot");
063:
064: /**
065: * @draft ICU 2.8
066: * @provisional This API might change or be removed in a future release.
067: */
068: public static HebrewHoliday HOSHANAH_RABBAH = new HebrewHoliday(
069: HebrewCalendar.TISHRI, 21, "Hoshanah Rabbah");
070:
071: /**
072: * @draft ICU 2.8
073: * @provisional This API might change or be removed in a future release.
074: */
075: public static HebrewHoliday SHEMINI_ATZERET = new HebrewHoliday(
076: HebrewCalendar.TISHRI, 22, "Shemini Atzeret");
077:
078: /**
079: * @draft ICU 2.8
080: * @provisional This API might change or be removed in a future release.
081: */
082: public static HebrewHoliday SIMCHAT_TORAH = new HebrewHoliday(
083: HebrewCalendar.TISHRI, 23, "Simchat Torah");
084:
085: /**
086: * @draft ICU 2.8
087: * @provisional This API might change or be removed in a future release.
088: */
089: public static HebrewHoliday HANUKKAH = new HebrewHoliday(
090: HebrewCalendar.KISLEV, 25, "Hanukkah");
091:
092: /**
093: * @draft ICU 2.8
094: * @provisional This API might change or be removed in a future release.
095: */
096: public static HebrewHoliday TEVET_10 = new HebrewHoliday(
097: HebrewCalendar.TEVET, 10, "Fast of Tevet 10");
098:
099: /**
100: * @draft ICU 2.8
101: * @provisional This API might change or be removed in a future release.
102: */
103: public static HebrewHoliday TU_BSHEVAT = new HebrewHoliday(
104: HebrewCalendar.SHEVAT, 15, "Tu B'Shevat");
105:
106: /**
107: * @draft ICU 2.8
108: * @provisional This API might change or be removed in a future release.
109: */
110: public static HebrewHoliday ESTHER = new HebrewHoliday(
111: HebrewCalendar.ADAR, 13, "Fast of Esther");
112:
113: /**
114: * @draft ICU 2.8
115: * @provisional This API might change or be removed in a future release.
116: */
117: public static HebrewHoliday PURIM = new HebrewHoliday(
118: HebrewCalendar.ADAR, 14, "Purim");
119:
120: /**
121: * @draft ICU 2.8
122: * @provisional This API might change or be removed in a future release.
123: */
124: public static HebrewHoliday SHUSHAN_PURIM = new HebrewHoliday(
125: HebrewCalendar.ADAR, 15, "Shushan Purim");
126:
127: /**
128: * @draft ICU 2.8
129: * @provisional This API might change or be removed in a future release.
130: */
131: public static HebrewHoliday PASSOVER = new HebrewHoliday(
132: HebrewCalendar.NISAN, 15, 8, "Passover");
133:
134: /**
135: * @draft ICU 2.8
136: * @provisional This API might change or be removed in a future release.
137: */
138: public static HebrewHoliday YOM_HASHOAH = new HebrewHoliday(
139: HebrewCalendar.NISAN, 27, "Yom Hashoah");
140:
141: /**
142: * @draft ICU 2.8
143: * @provisional This API might change or be removed in a future release.
144: */
145: public static HebrewHoliday YOM_HAZIKARON = new HebrewHoliday(
146: HebrewCalendar.IYAR, 4, "Yom Hazikaron");
147:
148: /**
149: * @draft ICU 2.8
150: * @provisional This API might change or be removed in a future release.
151: */
152: public static HebrewHoliday YOM_HAATZMAUT = new HebrewHoliday(
153: HebrewCalendar.IYAR, 5, "Yom Ha'Atzmaut");
154:
155: /**
156: * @draft ICU 2.8
157: * @provisional This API might change or be removed in a future release.
158: */
159: public static HebrewHoliday PESACH_SHEINI = new HebrewHoliday(
160: HebrewCalendar.IYAR, 14, "Pesach Sheini");
161:
162: /**
163: * @draft ICU 2.8
164: * @provisional This API might change or be removed in a future release.
165: */
166: public static HebrewHoliday LAG_BOMER = new HebrewHoliday(
167: HebrewCalendar.IYAR, 18, "Lab B'Omer");
168:
169: /**
170: * @draft ICU 2.8
171: * @provisional This API might change or be removed in a future release.
172: */
173: public static HebrewHoliday YOM_YERUSHALAYIM = new HebrewHoliday(
174: HebrewCalendar.IYAR, 28, "Yom Yerushalayim");
175:
176: /**
177: * @draft ICU 2.8
178: * @provisional This API might change or be removed in a future release.
179: */
180: public static HebrewHoliday SHAVUOT = new HebrewHoliday(
181: HebrewCalendar.SIVAN, 6, 2, "Shavuot");
182:
183: /**
184: * @draft ICU 2.8
185: * @provisional This API might change or be removed in a future release.
186: */
187: public static HebrewHoliday TAMMUZ_17 = new HebrewHoliday(
188: HebrewCalendar.TAMUZ, 17, "Fast of Tammuz 17");
189:
190: /**
191: * @draft ICU 2.8
192: * @provisional This API might change or be removed in a future release.
193: */
194: public static HebrewHoliday TISHA_BAV = new HebrewHoliday(
195: HebrewCalendar.AV, 9, "Fast of Tisha B'Av");
196:
197: /**
198: * @draft ICU 2.8
199: * @provisional This API might change or be removed in a future release.
200: */
201: public static HebrewHoliday SELIHOT = new HebrewHoliday(
202: HebrewCalendar.ELUL, 21, "Selihot");
203: }
|