001/* 002 * Zmanim Java API 003 * Copyright © 2019 - 2026 Eliyahu Hershfeld 004 * Copyright © 2019 - 2021 Y Paritcher 005 * 006 * This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General 007 * Public License as published by the Free Software Foundation; version 2.1 of the License. 008 * 009 * This library is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied 010 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 011 * details. 012 * You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to 013 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA, 014 * or connect to: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html 015 */ 016package com.kosherjava.zmanim.hebrewcalendar; 017 018import java.util.Calendar; 019 020/** 021 * Tefila Rules is a utility class that covers the various <em>halachos</em> and <em>minhagim</em> regarding 022 * changes to daily <em>tefila</em> / prayers, based on the Jewish calendar. This is mostly useful for use in 023 * developing <em>siddur</em> type applications, but it is also valuable for <em>shul</em> calendars that set 024 * <em>tefila</em> times based on if <a href="https://en.wikipedia.org/wiki/Tachanun"><em>tachanun</em></a> is 025 * recited that day. There are many settings in this class to cover the vast majority of <em>minhagim</em>, but 026 * there are likely some not covered here. The source for many of the <em>chasidishe minhagim</em> can be found 027 * in the <a href="https://www.nli.org.il/he/books/NNL_ALEPH001141272/NLI">Minhag Yisrael Torah</a> on Orach 028 * Chaim 131. 029 * Dates used in specific communities such as specific <em>yahrzeits</em> or a holidays like Purim Mezhbizh 030 * (Medzhybizh) celebrated on 11 {@link JewishDate#TEVES <em>Teves</em>} or <a href= 031 * "https://en.wikipedia.org/wiki/Second_Purim#Purim_Saragossa_(18_Shevat)">Purim Saragossa</a> celebrated on 032 * the (17th or) 18th of {@link JewishDate#SHEVAT <em>Shevat</em>} are not (and likely will not be) supported by 033 * this class. 034 * <p>Sample code: 035 * <pre style="background: #FEF0C9; display: inline-block;"> 036 * TefilaRules tr = new TefilaRules(); 037 * JewishCalendar jewishCalendar = new JewishCalendar(); 038 * HebrewDateFormatter hdf = new HebrewDateFormatter(); 039 * jewishCalendar.setJewishDate(5783, JewishDate.TISHREI, 1); // Rosh Hashana 040 * System.out.println(hdf.format(jewishCalendar) + ": " + tr.isTachanunRecitedShacharis(jd)); 041 * jewishCalendar.setJewishDate(5783, JewishDate.ADAR, 17); 042 * System.out.println(hdf.format(jewishCalendar) + ": " + tr.isTachanunRecitedShacharis(jewishCalendar)); 043 * tr.setTachanunRecitedWeekOfPurim(false); 044 * System.out.println(hdf.format(jewishCalendar) + ": " + tr.isTachanunRecitedShacharis(jewishCalendar));</pre> 045 * 046 * @author © Y. Paritcher 2019 - 2021 047 * @author © Eliyahu Hershfeld 2019 - 2026 048 * 049 * @todo The following items may be added at a future date. 050 * <ol> 051 * <li><em>Lamnatzaiach</em></li> 052 * <li><em>Selichos</em></li> 053 * <li>...</li> 054 * </ol> 055 */ 056public class TefilaRules { 057 /** 058 * The default value is <code>true</code>. 059 * @see #isTachanunRecitedEndOfTishrei() 060 * @see #setTachanunRecitedEndOfTishrei(boolean) 061 */ 062 private boolean tachanunRecitedEndOfTishrei = true; 063 064 /** 065 * The default value is <code>false</code>. 066 * @see #isTachanunRecitedWeekAfterShavuos() 067 * @see #setTachanunRecitedWeekAfterShavuos(boolean) 068 */ 069 private boolean tachanunRecitedWeekAfterShavuos = false; 070 071 /** 072 * The default value is <code>true</code>. 073 * @see #isTachanunRecited13SivanOutOfIsrael() 074 * @see #setTachanunRecited13SivanOutOfIsrael(boolean) 075 */ 076 private boolean tachanunRecited13SivanOutOfIsrael = true; 077 078 /** 079 * The default value is <code>false</code>. 080 * @see #isTachanunRecitedPesachSheni() 081 * @see #setTachanunRecitedPesachSheni(boolean) 082 */ 083 private boolean tachanunRecitedPesachSheni = false; 084 085 /** 086 * The default value is <code>true</code>. 087 * @see #isTachanunRecited15IyarOutOfIsrael() 088 * @see #setTachanunRecited15IyarOutOfIsrael(boolean) 089 */ 090 private boolean tachanunRecited15IyarOutOfIsrael = true; 091 092 /** 093 * The default value is <code>false</code>. 094 * @see #isTachanunRecitedMinchaErevLagBaomer() 095 * @see #setTachanunRecitedMinchaErevLagBaomer(boolean) 096 */ 097 private boolean tachanunRecitedMinchaErevLagBaomer = false; 098 099 /** 100 * The default value is <code>true</code>. 101 * @see #isTachanunRecitedShivasYemeiHamiluim() 102 * @see #setTachanunRecitedShivasYemeiHamiluim(boolean) 103 */ 104 private boolean tachanunRecitedShivasYemeiHamiluim = true; 105 106 /** 107 * The default value is <code>true</code>. 108 * @see #isTachanunRecitedWeekOfHod() 109 * @see #setTachanunRecitedWeekOfHod(boolean) 110 */ 111 private boolean tachanunRecitedWeekOfHod = true; 112 113 /** 114 * The default value is <code>true</code>. 115 * @see #isTachanunRecitedWeekOfPurim() 116 * @see #setTachanunRecitedWeekOfPurim(boolean) 117 */ 118 private boolean tachanunRecitedWeekOfPurim = true; 119 120 /** 121 * The default value is <code>true</code>. 122 * @see #isTachanunRecitedFridays() 123 * @see #setTachanunRecitedFridays(boolean) 124 */ 125 private boolean tachanunRecitedFridays = true; 126 127 /** 128 * The default value is <code>true</code>. 129 * @see #isTachanunRecitedSundays() 130 * @see #setTachanunRecitedSundays(boolean) 131 */ 132 private boolean tachanunRecitedSundays = true; 133 134 /** 135 * The default value is <code>true</code>. 136 * @see #isTachanunRecitedMinchaAllYear() 137 * @see #setTachanunRecitedMinchaAllYear(boolean) 138 */ 139 private boolean tachanunRecitedMinchaAllYear = true; 140 141 /** 142 * The default value is <code>false</code>. 143 * @see #isMizmorLesodaRecited(JewishCalendar) 144 * @see #setMizmorLesodaRecitedErevYomKippurAndPesach(boolean) 145 */ 146 private boolean mizmorLesodaRecitedErevYomKippurAndPesach = false; 147 148 /** 149 * Default constructor of the TefilaRules. It currently does not have any parameters. 150 */ 151 public TefilaRules() { 152 // nothing here 153 } 154 155 /** 156 * Returns if <em>tachanun</em> is recited during <em>shacharis</em> on the day in question. There are the many 157 * <em>minhagim</em> based settings that are available in this class that control what days are set for 158 * <em>tachanun</em> recital. 159 * 160 * @param jewishCalendar the Jewish calendar day. 161 * @return if <em>tachanun</em> is recited during <em>shacharis</em>. 162 * @see #isTachanunRecitedMincha(JewishCalendar) 163 * @see #isTachanunRecitedSundays() 164 * @see #isTachanunRecitedFridays() 165 * @see #isTachanunRecitedEndOfTishrei() 166 * @see #isTachanunRecitedWeekAfterShavuos() 167 * @see #isTachanunRecited13SivanOutOfIsrael() 168 * @see #isTachanunRecitedPesachSheni() 169 * @see #isTachanunRecited15IyarOutOfIsrael() 170 * @see #isTachanunRecitedShivasYemeiHamiluim() 171 * @see #isTachanunRecitedWeekOfPurim() 172 * @see #isTachanunRecitedWeekOfHod() 173 */ 174 public boolean isTachanunRecitedShacharis(JewishCalendar jewishCalendar) { 175 int holidayIndex = jewishCalendar.getYomTovIndex(); 176 int day = jewishCalendar.getJewishDayOfMonth(); 177 int month = jewishCalendar.getJewishMonth(); 178 179 return jewishCalendar.getDayOfWeek() != Calendar.SATURDAY 180 && (tachanunRecitedSundays || jewishCalendar.getDayOfWeek() != Calendar.SUNDAY) 181 && (tachanunRecitedFridays || jewishCalendar.getDayOfWeek() != Calendar.FRIDAY) 182 && month != JewishDate.NISSAN 183 && (month != JewishDate.TISHREI || ((tachanunRecitedEndOfTishrei || day <= 8) 184 && (!tachanunRecitedEndOfTishrei || (day <= 8 || day >= 22)))) 185 && (month != JewishDate.SIVAN 186 || ((!tachanunRecitedWeekAfterShavuos || day >= 7) && (tachanunRecitedWeekAfterShavuos 187 || day >= (!jewishCalendar.getInIsrael() && !tachanunRecited13SivanOutOfIsrael ? 14 188 : 13)))) 189 && !jewishCalendar.isErevYomTov() && (!jewishCalendar.isYomTov() || (jewishCalendar.isTaanis() 190 && (tachanunRecitedPesachSheni || holidayIndex != JewishCalendar.PESACH_SHENI))) 191 && (jewishCalendar.getInIsrael() || tachanunRecitedPesachSheni || tachanunRecited15IyarOutOfIsrael 192 || jewishCalendar.getJewishMonth() != JewishDate.IYAR || day != 15) 193 && holidayIndex != JewishCalendar.TISHA_BEAV && !jewishCalendar.isIsruChag() 194 && !jewishCalendar.isRoshChodesh() 195 && (tachanunRecitedShivasYemeiHamiluim 196 || ((jewishCalendar.isJewishLeapYear() || month != JewishDate.ADAR) 197 && (!jewishCalendar.isJewishLeapYear() || month != JewishDate.ADAR_II)) 198 || day <= 22) 199 && (tachanunRecitedWeekOfPurim 200 || ((jewishCalendar.isJewishLeapYear() || month != JewishDate.ADAR) 201 && (!jewishCalendar.isJewishLeapYear() || month != JewishDate.ADAR_II)) 202 || day <= 10 || day >= 18) 203 && (!jewishCalendar.isUseModernHolidays() || (holidayIndex != JewishCalendar.YOM_HAATZMAUT 204 && holidayIndex != JewishCalendar.YOM_YERUSHALAYIM)) 205 && (tachanunRecitedWeekOfHod || month != JewishDate.IYAR || day <= 13 || day >= 21); 206 } 207 208 /** 209 * Returns if <em>tachanun</em> is recited during <em>mincha</em> on the day in question. 210 * 211 * @param jewishCalendar the Jewish calendar day. 212 * @return if <em>tachanun</em> is recited during <em>mincha</em>. 213 * @see #isTachanunRecitedShacharis(JewishCalendar) 214 */ 215 public boolean isTachanunRecitedMincha(JewishCalendar jewishCalendar) { 216 JewishCalendar tomorrow = (JewishCalendar) jewishCalendar.clone(); 217 tomorrow.plusDays(1); 218 219 return tachanunRecitedMinchaAllYear && jewishCalendar.getDayOfWeek() != Calendar.FRIDAY 220 && isTachanunRecitedShacharis(jewishCalendar) 221 && (isTachanunRecitedShacharis(tomorrow) 222 || tomorrow.getYomTovIndex() == JewishCalendar.EREV_ROSH_HASHANA 223 || tomorrow.getYomTovIndex() == JewishCalendar.EREV_YOM_KIPPUR 224 || tomorrow.getYomTovIndex() == JewishCalendar.PESACH_SHENI) 225 && (tachanunRecitedMinchaErevLagBaomer || tomorrow.getYomTovIndex() != JewishCalendar.LAG_BAOMER); 226 } 227 228 /** 229 * Returns if it is the Jewish day (starting the evening before) to start reciting <em>Vesein Tal Umatar Livracha</em> 230 * (<em>Sheailas Geshamim</em>). In Israel this is the 7th day of {@link JewishDate#CHESHVAN <em>Marcheshvan</em>}. 231 * Outside Israel recitation starts on the evening of December 4th (or 5th if it is the year before a civil leap year) 232 * in the 21st century and shifts a day forward every century not evenly divisible by 400. This method will return true 233 * if <em>vesein tal umatar</em> on the current Jewish date that starts on the previous night, so Dec 5/6 will be 234 * returned by this method in the 21st century. <em>vesein tal umatar</em> is not recited on <em>Shabbos</em> and the 235 * start date will be delayed a day when the start day is on a <em>Shabbos</em> (this can only occur out of Israel). 236 * 237 * @param jewishCalendar the Jewish calendar day. 238 * 239 * @return true if it is the first Jewish day (starting the prior evening of reciting <em>Vesein Tal Umatar Livracha</em> 240 * (<em>Sheailas Geshamim</em>). 241 * 242 * @see #isVeseinTalUmatarStartingTonight(JewishCalendar) 243 * @see #isVeseinTalUmatarRecited(JewishCalendar) 244 */ 245 public boolean isVeseinTalUmatarStartDate(JewishCalendar jewishCalendar) { 246 if (jewishCalendar.getInIsrael()) { 247 // The 7th Cheshvan can't occur on Shabbos, so always return true for 7 Cheshvan 248 return jewishCalendar.getJewishMonth() == JewishDate.CHESHVAN && jewishCalendar.getJewishDayOfMonth() == 7; 249 } else { 250 if (jewishCalendar.getDayOfWeek() == Calendar.SATURDAY) { //Not recited on Friday night 251 return false; 252 } 253 if (jewishCalendar.getDayOfWeek() == Calendar.SUNDAY) { // When starting on Sunday, it can be the start date or delayed from Shabbos 254 return jewishCalendar.getTekufasTishreiElapsedDays() == 48 || jewishCalendar.getTekufasTishreiElapsedDays() == 47; 255 } else { 256 return jewishCalendar.getTekufasTishreiElapsedDays() == 47; 257 } 258 } 259 } 260 261 /** 262 * Returns true if tonight is the first night to start reciting <em>Vesein Tal Umatar Livracha</em> ( 263 * <em>Sheailas Geshamim</em>). In Israel this is the 7th day of {@link JewishDate#CHESHVAN 264 * <em>Marcheshvan</em>} (so the 6th will return true). Outside Israel recitation starts on the evening 265 * of December 4th (or 5th if it is the year before a civil leap year) in the 21st century and shifts a 266 * day forward every century not evenly divisible by 400. <em>Vesein tal umatar</em> is not recited on 267 * <em>Shabbos</em> and the start date will be delayed a day when the start day is on a <em>Shabbos</em> 268 * (this can only occur out of Israel). 269 * 270 * @param jewishCalendar the Jewish calendar day. 271 * 272 * @return true if it is the first Jewish day (starting the prior evening of reciting <em>Vesein Tal Umatar 273 * Livracha</em> (<em>Sheailas Geshamim</em>). 274 * 275 * @see #isVeseinTalUmatarStartDate(JewishCalendar) 276 * @see #isVeseinTalUmatarRecited(JewishCalendar) 277 */ 278 public boolean isVeseinTalUmatarStartingTonight(JewishCalendar jewishCalendar) { 279 if (jewishCalendar.getInIsrael()) { 280 // The 7th Cheshvan can't occur on Shabbos, so always return true for 6 Cheshvan 281 return jewishCalendar.getJewishMonth() == JewishDate.CHESHVAN && jewishCalendar.getJewishDayOfMonth() == 6; 282 } else { 283 if (jewishCalendar.getDayOfWeek() == Calendar.FRIDAY) { //Not recited on Friday night 284 return false; 285 } 286 if (jewishCalendar.getDayOfWeek() == Calendar.SATURDAY) { // When starting on motzai Shabbos, it can be the start date or delayed from Friday night 287 return jewishCalendar.getTekufasTishreiElapsedDays() == 47 || jewishCalendar.getTekufasTishreiElapsedDays() == 46; 288 } else { 289 return jewishCalendar.getTekufasTishreiElapsedDays() == 46; 290 } 291 } 292 } 293 294 /** 295 * Returns if <em>Vesein Tal Umatar Livracha</em> (<em>Sheailas Geshamim</em>) is recited. This will return 296 * true for the entire season, even on <em>Shabbos</em> when it is not recited. 297 * 298 * @param jewishCalendar the Jewish calendar day. 299 * 300 * @return true if <em>Vesein Tal Umatar Livracha</em> (<em>Sheailas Geshamim</em>) is recited. 301 * 302 * @see #isVeseinTalUmatarStartDate(JewishCalendar) 303 * @see #isVeseinTalUmatarStartingTonight(JewishCalendar) 304 */ 305 public boolean isVeseinTalUmatarRecited(JewishCalendar jewishCalendar) { 306 int month = jewishCalendar.getJewishMonth(); 307 int day = jewishCalendar.getJewishDayOfMonth(); 308 309 if (month == JewishDate.NISSAN && day >= 15) { // Not recited from 15 Nissan (Pesach) through end of summer months 310 return false; 311 } 312 if (month > JewishDate.NISSAN && month < JewishDate.CHESHVAN) { 313 return false; 314 } 315 // Recited from 7 Cheshvan (Israel) or tekufas Tishrei day 47 (outside Israel) through 14 Nissan 316 if (jewishCalendar.getInIsrael()) { 317 return month != JewishDate.CHESHVAN || day >= 7; 318 } else { 319 return jewishCalendar.getTekufasTishreiElapsedDays() >= 47; 320 } 321 } 322 323 /** 324 * Returns if <em>Vesein Beracha</em> is recited. It is recited from 15 {@link JewishDate#NISSAN <em>Nissan</em>} to the 325 * point that {@link #isVeseinTalUmatarRecited(JewishCalendar) <em>vesein tal umatar</em> is recited}. 326 * 327 * @param jewishCalendar the Jewish calendar day. 328 * @return true if <em>Vesein Beracha</em> is recited. 329 * @see #isVeseinTalUmatarRecited(JewishCalendar) 330 */ 331 public boolean isVeseinBerachaRecited(JewishCalendar jewishCalendar) { 332 return ! isVeseinTalUmatarRecited(jewishCalendar); 333 } 334 335 /** 336 * Returns if the date is the start date for reciting <em>Mashiv Haruach Umorid Hageshem</em>. The date is 22 337 * {@link JewishDate#TISHREI <em>Tishrei</em>}. 338 * 339 * @param jewishCalendar the Jewish calendar day. 340 * @return true if the date is the start date for reciting <em>Mashiv Haruach Umorid Hageshem</em>. 341 * @see #isMashivHaruachEndDate(JewishCalendar) 342 * @see #isMashivHaruachRecited(JewishCalendar) 343 */ 344 public boolean isMashivHaruachStartDate(JewishCalendar jewishCalendar) { 345 return jewishCalendar.getJewishMonth() == JewishDate.TISHREI && jewishCalendar.getJewishDayOfMonth() == 22; 346 } 347 348 /** 349 * Returns if the date is the end date for reciting <em>Mashiv Haruach Umorid Hageshem</em>. The date is 15 350 * {@link JewishDate#NISSAN <em>Nissan</em>}. 351 * 352 * @param jewishCalendar the Jewish calendar day. 353 * @return true if the date is the end date for reciting <em>Mashiv Haruach Umorid Hageshem</em>. 354 * @see #isMashivHaruachStartDate(JewishCalendar) 355 * @see #isMashivHaruachRecited(JewishCalendar) 356 */ 357 public boolean isMashivHaruachEndDate(JewishCalendar jewishCalendar) { 358 return jewishCalendar.getJewishMonth() == JewishDate.NISSAN && jewishCalendar.getJewishDayOfMonth() == 15; 359 } 360 361 /** 362 * Returns if <em>Mashiv Haruach Umorid Hageshem</em> is recited. This period starts on 22 {@link 363 * JewishDate#TISHREI <em>Tishrei</em>} and ends on the 15th day of {@link JewishDate#NISSAN <em>Nissan</em>}. 364 * 365 * @param jewishCalendar the Jewish calendar day. 366 * @return true if <em>Mashiv Haruach Umorid Hageshem</em> is recited. 367 * @see #isMashivHaruachStartDate(JewishCalendar) 368 * @see #isMashivHaruachEndDate(JewishCalendar) 369 */ 370 public boolean isMashivHaruachRecited(JewishCalendar jewishCalendar) { 371 JewishDate startDate = new JewishDate(jewishCalendar.getJewishYear(), JewishDate.TISHREI, 22); 372 JewishDate endDate = new JewishDate(jewishCalendar.getJewishYear(), JewishDate.NISSAN, 15); 373 return jewishCalendar.compareTo(startDate) > 0 && jewishCalendar.compareTo(endDate) < 0; 374 } 375 376 /** 377 * Returns if <em>Morid Hatal</em> (or the lack of reciting <em>Mashiv Haruach</em> following <em>nussach Ashkenaz</em>) is 378 * recited. This period starts on the 15th day of {@link JewishDate#NISSAN <em>Nissan</em>} and ends on 22 {@link 379 * JewishDate#TISHREI <em>Tishrei</em>}. 380 * 381 * @param jewishCalendar the Jewish calendar day. 382 * 383 * @return true if <em>Morid Hatal</em> (or the lack of reciting <em>Mashiv Haruach</em> following <em>nussach Ashkenaz</em>) is recited. 384 */ 385 public boolean isMoridHatalRecited(JewishCalendar jewishCalendar) { 386 return ! isMashivHaruachRecited(jewishCalendar) || isMashivHaruachStartDate(jewishCalendar) || isMashivHaruachEndDate(jewishCalendar); 387 } 388 389 /** 390 * Returns if <em>Hallel</em> is recited on the day in question. This will return true for both <em>Hallel shalem</em> 391 * and <em>Chatzi Hallel</em>. See {@link #isHallelShalemRecited(JewishCalendar)} to know if the complete <em>Hallel</em> 392 * is recited. 393 * 394 * @param jewishCalendar the Jewish calendar day. 395 * @return if <em>Hallel</em> is recited. 396 * @see #isHallelShalemRecited(JewishCalendar) 397 */ 398 public boolean isHallelRecited(JewishCalendar jewishCalendar) { 399 int day = jewishCalendar.getJewishDayOfMonth(); 400 int month = jewishCalendar.getJewishMonth(); 401 int holidayIndex = jewishCalendar.getYomTovIndex(); 402 boolean inIsrael = jewishCalendar.getInIsrael(); 403 404 if (jewishCalendar.isRoshChodesh()) { //RH returns false for RC 405 return true; 406 } 407 if (jewishCalendar.isChanukah()) { 408 return true; 409 } 410 switch (month) { 411 case JewishDate.NISSAN: 412 if (day >= 15 && ((inIsrael && day <= 21) || (! inIsrael && day <= 22))){ 413 return true; 414 } 415 break; 416 case JewishDate.IYAR: // modern holidays 417 if (jewishCalendar.isUseModernHolidays() && (holidayIndex == JewishCalendar.YOM_HAATZMAUT 418 || holidayIndex == JewishCalendar.YOM_YERUSHALAYIM)){ 419 return true; 420 } 421 break; 422 case JewishDate.SIVAN: 423 if (day == 6 || (! inIsrael && (day == 7))){ 424 return true; 425 } 426 break; 427 case JewishDate.TISHREI: 428 if (day >= 15 && (day <= 22 || (! inIsrael && (day <= 23)))){ 429 return true; 430 } 431 } 432 return false; 433 } 434 435 /** 436 * Returns if <em>hallel shalem</em> is recited on the day in question. This will always return false if {@link 437 * #isHallelRecited(JewishCalendar)} returns false. 438 * 439 * @param jewishCalendar the Jewish calendar day. 440 * @return if <em>hallel shalem</em> is recited. 441 * @see #isHallelRecited(JewishCalendar) 442 */ 443 public boolean isHallelShalemRecited(JewishCalendar jewishCalendar) { 444 int day = jewishCalendar.getJewishDayOfMonth(); 445 int month = jewishCalendar.getJewishMonth(); 446 boolean inIsrael = jewishCalendar.getInIsrael(); 447 if (isHallelRecited(jewishCalendar)) { 448 return (!jewishCalendar.isRoshChodesh() || jewishCalendar.isChanukah()) 449 && (month != JewishDate.NISSAN || ((!inIsrael || day <= 15) && (inIsrael || day <= 16))); 450 } 451 return false; 452 } 453 454 /** 455 * Returns if <a href="https://en.wikipedia.org/wiki/Al_HaNissim"><em>Al HaNissim</em></a> is recited on the day in question. 456 * 457 * @param jewishCalendar the Jewish calendar day. 458 * @return if <em>al hanissim</em> is recited. 459 * @see JewishCalendar#isChanukah() 460 * @see JewishCalendar#isPurim() 461 * @see JewishCalendar#getIsMukafChoma() 462 */ 463 public boolean isAlHanissimRecited(JewishCalendar jewishCalendar) { 464 return jewishCalendar.isPurim() || jewishCalendar.isChanukah(); 465 } 466 467 /** 468 * Returns if <em>Yaaleh Veyavo</em> is recited on the day in question. 469 * 470 * @param jewishCalendar the Jewish calendar day. 471 * @return if <em>Yaaleh Veyavo</em> is recited. 472 * @see JewishCalendar#isPesach() 473 * @see JewishCalendar#isShavuos() 474 * @see JewishCalendar#isRoshHashana() 475 * @see JewishCalendar#isYomKippur() 476 * @see JewishCalendar#isSuccos() 477 * @see JewishCalendar#isShminiAtzeres() 478 * @see JewishCalendar#isSimchasTorah() 479 * @see JewishCalendar#isRoshChodesh() 480 */ 481 public boolean isYaalehVeyavoRecited(JewishCalendar jewishCalendar) { 482 return jewishCalendar.isPesach() || jewishCalendar.isShavuos() ||jewishCalendar.isRoshHashana() 483 ||jewishCalendar.isYomKippur() || jewishCalendar.isSuccos() || jewishCalendar.isShminiAtzeres() 484 || jewishCalendar.isSimchasTorah() || jewishCalendar.isRoshChodesh(); 485 } 486 487 /** 488 * Returns if Is <em>Mizmor Lesoda</em> is recited on the day in question. 489 * @param jewishCalendar the Jewish calendar day. 490 * @return if <em>Mizmor Lesoda</em> is recited. 491 * 492 * @see #isMizmorLesodaRecitedErevYomKippurAndPesach() 493 * 494 */ 495 public boolean isMizmorLesodaRecited(JewishCalendar jewishCalendar) { 496 if (jewishCalendar.isAssurBemelacha()) { 497 return false; 498 } 499 500 int holidayIndex = jewishCalendar.getYomTovIndex(); 501 return isMizmorLesodaRecitedErevYomKippurAndPesach() || (holidayIndex != JewishCalendar.EREV_YOM_KIPPUR 502 && holidayIndex != JewishCalendar.EREV_PESACH && !jewishCalendar.isCholHamoedPesach()); 503 } 504 505 /** 506 * Is <em>tachanun</em> set to be recited during the week of Purim, from the 11th through the 17th of {@link 507 * JewishDate#ADAR <em>Adar</em>} (on a non-leap year, or {@link JewishDate#ADAR_II <em>Adar II</em>} on a leap year). Some 508 * <em>chasidishe</em> communities do not recite <em>tachanun</em> during this period. See the <a href= 509 * "https://www.nli.org.il/he/books/NNL_ALEPH001141272/NLI">Minhag Yisrael Torah</a> 131 and <a href= 510 * "https://hebrewbooks.org/pdfpager.aspx?req=4692&st=&pgnum=70">Darkei Chaim Veshalom 191</a>who discuss the 511 * <em>minhag</em> not to recite <em>tachanun</em>. Also see the <a href= 512 * "https://hebrewbooks.org/pdfpager.aspx?req=8944&st=&pgnum=160">Mishmeres Shalom (Hadras Shalom)</a> who discusses the 513 * <em>minhag</em> of not reciting it on the 16th and 17th. 514 * @return If <em>tachanun</em> is set to be recited during the week of Purim from the 11th through the 17th of {@link 515 * JewishDate#ADAR <em>Adar</em>} (on a non-leap year, or {@link JewishDate#ADAR_II <em>Adar II</em>} on a leap year). 516 * @see #setTachanunRecitedWeekOfPurim(boolean) 517 */ 518 public boolean isTachanunRecitedWeekOfPurim() { 519 return tachanunRecitedWeekOfPurim; 520 } 521 522 /** 523 * Sets if <em>tachanun</em> should be recited during the week of Purim from the 11th through the 17th of {@link 524 * JewishDate#ADAR <em>Adar</em>} (on a non-leap year), or {@link JewishDate#ADAR_II <em>Adar II</em>} (on a leap year). 525 * @param tachanunRecitedWeekOfPurim Sets if <em>tachanun</em> is to recited during the week of Purim from the 11th 526 * through the 17th of {@link JewishDate#ADAR <em>Adar</em>} (on a non-leap year), or {@link JewishDate#ADAR_II 527 * <em>Adar II</em>} (on a leap year). Some <em>chasidishe</em> communities do not recite <em>tachanun</em> 528 * during this period. 529 * @see #isTachanunRecitedWeekOfPurim() 530 */ 531 public void setTachanunRecitedWeekOfPurim(boolean tachanunRecitedWeekOfPurim) { 532 this.tachanunRecitedWeekOfPurim = tachanunRecitedWeekOfPurim; 533 } 534 535 /** 536 * Is <em>tachanun</em> set to be recited during the <em>sefira</em> week of <em>Hod</em> (14 - 20 {@link 537 * JewishDate#IYAR <em>Iyar</em>}, or the 29th - 35th of the {@link JewishCalendar#getDayOfOmer() <em>Omer</em>}). Some 538 * <em>chasidishe</em> communities do not recite <em>tachanun</em> during this week. See Minhag Yisrael Torah 131:Iyar. 539 * @return If <em>tachanun</em> is set to be recited during the <em>sefira</em> week of <em>Hod</em> (14 - 20 {@link 540 * JewishDate#IYAR <em>Iyar</em>}, or the 29th - 35th of the {@link JewishCalendar#getDayOfOmer() <em>Omer</em>}). 541 * @see #setTachanunRecitedWeekOfHod(boolean) 542 */ 543 public boolean isTachanunRecitedWeekOfHod() { 544 return tachanunRecitedWeekOfHod; 545 } 546 547 /** 548 * Sets if <em>tachanun</em> should be recited during the <em>sefira</em> week of <em>Hod</em> (14 - 20 549 * {@link JewishDate#IYAR <em>Iyar</em>}, or the 29th - 35th of the {@link JewishCalendar#getDayOfOmer() <em>Omer</em>}). 550 * @param tachanunRecitedWeekOfHod Sets if <em>tachanun</em> should be recited during the <em>sefira</em> week of 551 * <em>Hod</em>. 552 * @see #isTachanunRecitedWeekOfHod() 553 */ 554 public void setTachanunRecitedWeekOfHod(boolean tachanunRecitedWeekOfHod) { 555 this.tachanunRecitedWeekOfHod = tachanunRecitedWeekOfHod; 556 } 557 558 /** 559 * Is <em>tachanun</em> set to be recited at the end Of {@link JewishDate#TISHREI <em>Tishrei</em>}.The Magen Avraham 669:1 and 560 * the Pri Chadash 131:7 state that some places to not recite <em>tachanun</em> during this period. The Sh"UT Chasam Sofer on 561 * Choshen Mishpat 77 writes that this is the <em>minhag</em> in Ashkenaz. The Shaarei Teshuva 131:19 quotes the Sheyarie Kneses 562 * Hagdola who also states that it should not be recited. The Aderes wanted to institute saying <em>tachanun</em> during this 563 * period, but was dissuaded from this by Rav Shmuel Salant who did not want to change the <em>minhag</em> in Yerushalayim. 564 * The Aruch Hashulchan is of the opinion that this <em>minhag</em> is incorrect, and it should be recited, and The Chazon 565 * Ish also recited <em>tachanun</em> during this period. See the Dirshu edition of the Mishna Berurah for details. 566 * @return If <em>tachanun</em> is set to be recited at the end of {@link JewishDate#TISHREI <em>Tishrei</em>}. 567 * @see #setTachanunRecitedEndOfTishrei(boolean) 568 */ 569 public boolean isTachanunRecitedEndOfTishrei() { 570 return tachanunRecitedEndOfTishrei; 571 } 572 573 /** 574 * Sets if <em>tachanun</em> should be recited at the end of {@link JewishDate#TISHREI <em>Tishrei</em>}. 575 * @param tachanunRecitedEndOfTishrei is <em>tachanun</em> recited at the end of {@link JewishDate#TISHREI <em>Tishrei</em>}. 576 * @see #isTachanunRecitedEndOfTishrei() 577 */ 578 public void setTachanunRecitedEndOfTishrei(boolean tachanunRecitedEndOfTishrei) { 579 this.tachanunRecitedEndOfTishrei = tachanunRecitedEndOfTishrei; 580 } 581 582 /** 583 * Is <em>tachanun</em> set to be recited during the week after <em>Shavuos</em>. This is the opinion of the Pri 584 * Megadim quoted by the Mishna Berurah. This is since <em>karbanos</em> of <em>Shavuos</em> have <em>tashlumim</em> 585 * for 7 days, it is still considered like a <em>Yom Tov</em>. The Chazon Ish quoted in the Orchos Rabainu vol. 1 586 * page 68 recited <em>tachanun</em> during this week. 587 * 588 * @return If <em>tachanun</em> is set to be recited during the week after Shavuos. 589 * @see #setTachanunRecitedWeekAfterShavuos(boolean) 590 */ 591 public boolean isTachanunRecitedWeekAfterShavuos() { 592 return tachanunRecitedWeekAfterShavuos; 593 } 594 595 /** 596 * Sets if <em>tachanun</em> should be recited during the week after <em>Shavuos</em>. 597 * @param tachanunRecitedWeekAfterShavuos is <em>tachanun</em> recited during the week after Shavuos. 598 * @see #isTachanunRecitedWeekAfterShavuos() 599 */ 600 public void setTachanunRecitedWeekAfterShavuos(boolean tachanunRecitedWeekAfterShavuos) { 601 this.tachanunRecitedWeekAfterShavuos = tachanunRecitedWeekAfterShavuos; 602 } 603 604 /** 605 * Is <em>tachanun</em> is set to be recited on the 13th of {@link JewishDate#SIVAN <em>Sivan</em>} (<a href= 606 * "https://en.wikipedia.org/wiki/Yom_tov_sheni_shel_galuyot"><em>Yom Tov Sheni shel Galuyos</em></a> of the 7th 607 * day) outside Israel. This is brought down by the Shaarie Teshuva 131:19 quoting the <a href= 608 * "https://hebrewbooks.org/pdfpager.aspx?req=41295&st=&pgnum=39">Sheyarei Kneses Hagedola 131:12</a>that 609 * <em>tachanun</em> should not be recited on this day. Rav Shlomo Zalman Orbach in Halichos Shlomo on 610 * Shavuos 12:16:25 is of the opinion that even in <em>chutz laaretz</em> it should be recited since the <em>yemei 611 * Tashlumin</em> are counted based on Israel since that is where the <em>karbanos</em> are brought. Both 612 * {@link #isTachanunRecitedShacharis(JewishCalendar)} and {@link #isTachanunRecitedMincha(JewishCalendar)} 613 * only return false if the location is not set to {@link JewishCalendar#getInIsrael() Israel} and both 614 * {@link #tachanunRecitedWeekAfterShavuos} and {@link #setTachanunRecited13SivanOutOfIsrael} are set to false. 615 * 616 * @return If <em>tachanun</em> is set to be recited on the 13th of {@link JewishDate#SIVAN <em>Sivan</em>} out of Israel. 617 * @see #setTachanunRecited13SivanOutOfIsrael(boolean) 618 * @see #isTachanunRecitedWeekAfterShavuos() 619 */ 620 public boolean isTachanunRecited13SivanOutOfIsrael() { 621 return tachanunRecited13SivanOutOfIsrael; 622 } 623 624 /** 625 * Sets if <em>tachanun</em> should be recited on the 13th of {@link JewishDate#SIVAN <em>Sivan</em>} (<a href= 626 * "https://en.wikipedia.org/wiki/Yom_tov_sheni_shel_galuyot"><em>Yom Tov Sheni shel Galuyos</em></a> of the 7th 627 * day) outside Israel. 628 * @param tachanunRecitedThirteenSivanOutOfIsrael sets if <em>tachanun</em> should be recited on the 13th of {@link 629 * JewishDate#SIVAN <em>Sivan</em>} out of Israel. Both {@link #isTachanunRecitedShacharis(JewishCalendar)} and 630 * {@link #isTachanunRecitedMincha(JewishCalendar)} only return false if the location is not set to {@link 631 * JewishCalendar#getInIsrael() Israel} and both {@link #tachanunRecitedWeekAfterShavuos} and 632 * {@link #setTachanunRecited13SivanOutOfIsrael} are set to false. 633 * @see #isTachanunRecited13SivanOutOfIsrael() 634 */ 635 public void setTachanunRecited13SivanOutOfIsrael(boolean tachanunRecitedThirteenSivanOutOfIsrael) { 636 this.tachanunRecited13SivanOutOfIsrael = tachanunRecitedThirteenSivanOutOfIsrael; 637 } 638 639 /** 640 * Is <em>tachanun</em> set to be recited on {@link JewishCalendar#PESACH_SHENI <em>Pesach Sheni</em>}. The Pri Chadash 131:7 641 * states that <em>tachanun</em> should not be recited. The Aruch Hashulchan states that this is the minhag of the 642 * <em>sephardim</em>. The Shaarei Efraim 10:27 also mentions that it is not recited, as does the Siddur Yaavetz (Shaar Hayesod, 643 * Chodesh Iyar). The Pri Megadim (Mishbetzes Hazahav 131:15) and the Chazon Ish (Erev Pesach Shechal Beshabbos, page 203 in 644 * <a href="https://he.wikipedia.org/wiki/%D7%A9%D7%A8%D7%99%D7%94_%D7%93%D7%91%D7%9C%D7%99%D7%A6%D7%A7%D7%99">Rav Sheraya 645 * Devlitzky's</a> comments). 646 * 647 * @return If <em>tachanun</em> is set to be recited on {@link JewishCalendar#PESACH_SHENI <em>Pesach Sheni</em>}. 648 * @see #setTachanunRecitedPesachSheni(boolean) 649 */ 650 public boolean isTachanunRecitedPesachSheni() { 651 return tachanunRecitedPesachSheni; 652 } 653 654 /** 655 * Sets if <em>tachanun</em> should be recited on {@link JewishCalendar#PESACH_SHENI <em>Pesach Sheni</em>}. 656 * @param tachanunRecitedPesachSheni sets if <em>tachanun</em> should be recited on <em>Pesach Sheni</em>. 657 * @see #isTachanunRecitedPesachSheni() 658 */ 659 public void setTachanunRecitedPesachSheni(boolean tachanunRecitedPesachSheni) { 660 this.tachanunRecitedPesachSheni = tachanunRecitedPesachSheni; 661 } 662 663 /** 664 * Is <em>tachanun</em> set to be recited on 15 {@link JewishDate#IYAR <em>Iyar</em>} (<em>sfaika deyoma</em> of {@link 665 * JewishCalendar#PESACH_SHENI <em>Pesach Sheni</em>}) out of Israel. If {@link #isTachanunRecitedPesachSheni()} is 666 * <code>true</code> this will be ignored even if <code>false</code>. 667 * 668 * @return if <em>tachanun</em> is set to be recited on 15 {@link JewishDate#IYAR <em>Iyar</em>} (<em>sfaika deyoma</em> 669 * of {@link JewishCalendar#PESACH_SHENI <em>Pesach Sheni</em>} out of Israel. If 670 * {@link #isTachanunRecitedPesachSheni()} is <code>true</code> this will be ignored even if <code>false</code>. 671 * @see #setTachanunRecited15IyarOutOfIsrael(boolean) 672 * @see #setTachanunRecitedPesachSheni(boolean) 673 * @see #isTachanunRecitedPesachSheni() 674 */ 675 public boolean isTachanunRecited15IyarOutOfIsrael() { 676 return tachanunRecited15IyarOutOfIsrael; 677 } 678 679 /** 680 * Sets if <em>tachanun</em> should be recited on the 15th of {@link JewishDate#IYAR <em>Iyar</em>} (<a href= 681 * "https://en.wikipedia.org/wiki/Yom_tov_sheni_shel_galuyot"><em>Yom Tov Sheni shel Galuyos</em></a> of 682 * {@link JewishCalendar#PESACH_SHENI <em>Pesach Sheni</em>}) out of Israel. Ignored if {@link 683 * #isTachanunRecitedPesachSheni()} is <code>true</code>. 684 * 685 * @param tachanunRecited15IyarOutOfIsrael if <em>tachanun</em> should be recited on the 15th of {@link JewishDate#IYAR 686 * <em>Iyar</em>} (<em>sfaika deyoma</em> of {@link JewishCalendar#PESACH_SHENI <em>Pesach Sheni</em>}) out of Israel. 687 * @see #isTachanunRecited15IyarOutOfIsrael() 688 */ 689 public void setTachanunRecited15IyarOutOfIsrael(boolean tachanunRecited15IyarOutOfIsrael) { 690 this.tachanunRecited15IyarOutOfIsrael = tachanunRecited15IyarOutOfIsrael; 691 } 692 693 /** 694 * Is <em>tachanun</em> set to be recited on <em>mincha</em> on <em>erev {@link JewishCalendar#LAG_BAOMER Lag 695 * Baomer}</em>. 696 * @return if <em>tachanun</em> is set to be recited in <em>mincha</em> on <em>erev</em> 697 * {@link JewishCalendar#LAG_BAOMER <em>Lag Baomer</em>}. 698 * @see #setTachanunRecitedMinchaErevLagBaomer(boolean) 699 */ 700 public boolean isTachanunRecitedMinchaErevLagBaomer() { 701 return tachanunRecitedMinchaErevLagBaomer; 702 } 703 704 /** 705 * Sets if <em>tachanun</em> should be recited on <em>erev {@link JewishCalendar#LAG_BAOMER Lag Baomer}</em>. 706 * @param tachanunRecitedMinchaErevLagBaomer sets if <em>tachanun</em> should be recited on <em>mincha</em> 707 * of <em>erev {@link JewishCalendar#LAG_BAOMER Lag Baomer}</em>. 708 * @see #isTachanunRecitedMinchaErevLagBaomer() 709 */ 710 public void setTachanunRecitedMinchaErevLagBaomer(boolean tachanunRecitedMinchaErevLagBaomer) { 711 this.tachanunRecitedMinchaErevLagBaomer = tachanunRecitedMinchaErevLagBaomer; 712 } 713 714 /** 715 * Is <em>tachanun</em> set to be recited during the <em>Shivas Yemei Hamiluim</em>, from the 23 of {@link 716 * JewishDate#ADAR <em>Adar</em>} on a non-leap-year or {@link JewishDate#ADAR_II <em>Adar II</em>} on a 717 * leap year to the end of the month. Some <em>chasidishe</em> communities do not say <em>tachanun</em> 718 * during this week. See <a href="https://hebrewbooks.org/pdfpager.aspx?req=4692&st=&pgnum=70">Darkei 719 * Chaim Veshalom 191</a>. 720 * @return if <em>tachanun</em> is set to be recited during the <em>Shivas Yemei Hamiluim</em>, from the 23 of {@link 721 * JewishDate#ADAR <em>Adar</em>} on a non-leap-year or {@link JewishDate#ADAR_II <em>Adar II</em>} on a leap year to 722 * the end of the month. 723 * @see #setTachanunRecitedShivasYemeiHamiluim(boolean) 724 */ 725 public boolean isTachanunRecitedShivasYemeiHamiluim() { 726 return tachanunRecitedShivasYemeiHamiluim; 727 } 728 729 /** 730 * Sets if <em>tachanun</em> should be recited during the <em>Shivas Yemei Hamiluim</em>, from the 23 of 731 * {@link JewishDate#ADAR <em>Adar</em>} on a non-leap-year or {@link JewishDate#ADAR_II <em>Adar II</em>} 732 * on a leap year to the end of the month. 733 * @param tachanunRecitedShivasYemeiHamiluim sets if <em>tachanun</em> should be recited during the <em>Shivas Yemei Hamiluim</em>. 734 * @see #isTachanunRecitedShivasYemeiHamiluim() 735 */ 736 public void setTachanunRecitedShivasYemeiHamiluim(boolean tachanunRecitedShivasYemeiHamiluim) { 737 this.tachanunRecitedShivasYemeiHamiluim = tachanunRecitedShivasYemeiHamiluim; 738 } 739 740 /** 741 * Is <em>tachanun</em> set to be recited on Fridays. Some <em>chasidishe</em> communities do not recite 742 * <em>tachanun</em> on Fridays. See <a href="https://hebrewbooks.org/pdfpager.aspx?req=41190&st=&pgnum=10">Likutei 743 * Maharich Vol 2 Seder Hanhagos Erev Shabbos</a>. This is also the <em>minhag</em> in Satmar. 744 * @return if <em>tachanun</em> is set to be recited on Fridays. 745 * @see #setTachanunRecitedFridays(boolean) 746 */ 747 public boolean isTachanunRecitedFridays() { 748 return tachanunRecitedFridays; 749 } 750 751 /** 752 * Sets if <em>tachanun</em> should be recited on Fridays. 753 * @param tachanunRecitedFridays sets if <em>tachanun</em> should be recited on Fridays. Some <em>chasidishe</em> communities 754 * do not recite <em>tachanun</em> on Fridays. 755 * @see #isTachanunRecitedFridays() 756 */ 757 public void setTachanunRecitedFridays(boolean tachanunRecitedFridays) { 758 this.tachanunRecitedFridays = tachanunRecitedFridays; 759 } 760 761 /** 762 * Is <em>tachanun</em> set to be recited on Sundays. Some <em>chasidishe</em> communities do not recite <em>tachanun</em> on 763 * Sundays. See <a href="https://hebrewbooks.org/pdfpager.aspx?req=41190&st=&pgnum=10">Likutei Maharich Vol 2 Seder Hanhagos 764 * Erev Shabbos</a>. 765 * @return if <em>tachanun</em> is set to be recited on Sundays. 766 * @see #setTachanunRecitedSundays(boolean) 767 */ 768 public boolean isTachanunRecitedSundays() { 769 return tachanunRecitedSundays; 770 } 771 772 /** 773 * Sets if <em>tachanun</em> should be recited on Sundays. 774 * @param tachanunRecitedSundays sets if <em>tachanun</em> should be recited on Sundays. Some <em>chasidishe</em> communities 775 * do not recite <em>tachanun</em> on Sundays. 776 * @see #isTachanunRecitedSundays() 777 */ 778 public void setTachanunRecitedSundays(boolean tachanunRecitedSundays) { 779 this.tachanunRecitedSundays = tachanunRecitedSundays; 780 } 781 782 /** 783 * Is <em>tachanun</em> set to be recited in <em>Mincha</em> the entire year. Some <em>chasidishe</em> communities do 784 * not recite <em>tachanun</em> by <em>Mincha</em> all year round. See <a href= 785 * "https://hebrewbooks.org/pdfpager.aspx?req=4751&st=&pgnum=105">Nemukei Orach Chaim 131:3</a>. 786 * @return if <em>tachanun</em> is set to be recited in <em>Mincha</em> the entire year. 787 * @see #setTachanunRecitedMinchaAllYear(boolean) 788 */ 789 public boolean isTachanunRecitedMinchaAllYear() { 790 return tachanunRecitedMinchaAllYear; 791 } 792 793 /** 794 * Sets if <em>tachanun</em> should be recited in <em>Mincha</em> the entire year. 795 * @param tachanunRecitedMinchaAllYear sets if <em>tachanun</em> should be recited by <em>mincha</em> all year. If set 796 * to false, {@link #isTachanunRecitedMincha(JewishCalendar)} will always return false. If set to true (the default), 797 * it will use the regular rules. 798 * @see #isTachanunRecitedMinchaAllYear() 799 */ 800 public void setTachanunRecitedMinchaAllYear(boolean tachanunRecitedMinchaAllYear) { 801 this.tachanunRecitedMinchaAllYear = tachanunRecitedMinchaAllYear; 802 } 803 804 /** 805 * Sets if <em>Mizmor Lesoda</em> should be recited on <em>Erev Yom Kippur</em>, <em>Erev Pesach</em> and <em>Chol 806 * Hamoed Pesach</em>. Ashkenazi congregations do not recite it on these days, while Sephardi congregations do. The 807 * default value is <code>false</code>. 808 * @param mizmorLesodaRecitedErevYomKippurAndPesach Sets if <em>Mizmor Lesoda</em> should be recited on <em>Erev Yom Kippur</em>, 809 * <em>Erev Pesach</em> and <em>Chol Hamoed Pesach</em>. If set to true (the default value is <code>false</code>). 810 * @see #isTachanunRecitedMinchaAllYear() 811 */ 812 public void setMizmorLesodaRecitedErevYomKippurAndPesach(boolean mizmorLesodaRecitedErevYomKippurAndPesach) { 813 this.mizmorLesodaRecitedErevYomKippurAndPesach = mizmorLesodaRecitedErevYomKippurAndPesach; 814 } 815 816 /** 817 * Is <em>Mizmor Lesoda</em> set to be recited on <em>Erev Yom Kippur</em>, <em>Erev Pesach</em> and <em>Chol Hamoed Pesach</em>. 818 * Ashkenazi congregations do not recite it on these days, while Sephardi congregations do. The default value is 819 * <code>false</code>. 820 * @return if <em>Mizmor Lesoda</em> is set to be recited on <em>Erev Yom Kippur</em>, <em>Erev Pesach</em> and <em>Chol Hamoed 821 * Pesach</em>. If set to true (the default value is <code>false</code>). 822 * @see #isMizmorLesodaRecited(JewishCalendar) 823 */ 824 public boolean isMizmorLesodaRecitedErevYomKippurAndPesach() { 825 return mizmorLesodaRecitedErevYomKippurAndPesach; 826 } 827}