Class FormattingContext

java.lang.Object
org.rumbledb.runtime.functions.util.formatting.FormattingContext

public final class FormattingContext extends Object
  • Field Details

    • uLocale

      public final com.ibm.icu.util.ULocale uLocale
    • locale

      public final Locale locale
    • javaLocale

      public final Locale javaLocale
    • requestedLanguage

      public final String requestedLanguage
    • effectiveLanguage

      public final String effectiveLanguage
    • languageFallback

      public final boolean languageFallback
    • requestedCalendar

      public final String requestedCalendar
    • calendarDesignator

      public final String calendarDesignator
    • icuCalendarType

      public final String icuCalendarType
    • calendarFallback

      public final boolean calendarFallback
    • place

      public final String place
    • placeZoneId

      public final ZoneId placeZoneId
  • Method Details

    • fromArguments

      public static FormattingContext fromArguments(String language, String calendar, String rawPlace, Map<String,String> staticallyKnownNamespaces, ExceptionMetadata metadata)
      Creates a formatting context from the raw formatting arguments. This normalizes the place argument, resolves explicit IANA time zones, determines the effective calendar and language, applies fallbacks where necessary, and derives the ICU and Java locale data used for formatting.
    • shouldAdjustToPlaceTimezone

      public boolean shouldAdjustToPlaceTimezone()