Class ParshaFormatter

    • Method Detail

      • getTransliteratedParshiosList

        public String[] getTransliteratedParshiosList()
        Retruns the list of transliterated parshiyos used by this formatter.
        Returns:
        the list of transliterated Parshios
      • setTransliteratedParshiosList

        public void setTransliteratedParshiosList​(String[] transliteratedParshios)
        Setter method to allow overriding of the default list of parshiyos transliterated into into Latin chars. The default uses Ashkenazi American English transliteration.
        Parameters:
        transliteratedParshios - the transliterated Parshios to set
        See Also:
        getTransliteratedParshiosList()
      • formatParsha

        public String formatParsha​(JewishCalendar jewishCalendar)
        If the formatter is set to format in Hebrew, returns a string of the current parsha(ios) in Hebrew for example בראשית or ניצבים וילך or an empty string if there are none. If not set to Hebrew, it returns a string of the parsha(ios) transliterated into Latin chars. The default uses Ashkenazi pronunciation in typical American English spelling, for example Bereshis or Nitzavim Vayeilech or an empty string if there are none.
        Parameters:
        jewishCalendar - the JewishCalendar Object
        Returns:
        today's parsha(ios) in Hebrew for example, if the formatter is set to format in Hebrew, returns a string of the current parsha(ios) in Hebrew for example בראשית or ניצבים וילך or an empty string if there are none. If not set to Hebrew, it returns a string of the parsha(ios) transliterated into Latin chars. The default uses Ashkenazi pronunciation in typical American English spelling, for example Bereshis or Nitzavim Vayeilech or an empty string if there are none.