Enum Class NarrativeLanguage

java.lang.Object
java.lang.Enum<NarrativeLanguage>
org.projecthusky.fhir.emed.ch.epr.narrative.enums.NarrativeLanguage
All Implemented Interfaces:
Serializable, Comparable<NarrativeLanguage>, Constable

public enum NarrativeLanguage extends Enum<NarrativeLanguage>
Supported languages for the narrative generators.
Author:
Quentin Ligier
  • Enum Constant Details

  • Method Details

    • values

      public static NarrativeLanguage[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static NarrativeLanguage valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getIsoCode

      public String getIsoCode()
    • getDisplayName

      public String getDisplayName()
    • getLocale

      public Locale getLocale()
      Returns the related Locale.
    • getYearPrecisionFormatter

      public DateTimeFormatter getYearPrecisionFormatter()
    • getMonthPrecisionFormatter

      public DateTimeFormatter getMonthPrecisionFormatter()
    • getDayPrecisionFormatter

      public DateTimeFormatter getDayPrecisionFormatter()
    • getHourPrecisionFormatter

      public DateTimeFormatter getHourPrecisionFormatter()
    • getMinutePrecisionFormatter

      public DateTimeFormatter getMinutePrecisionFormatter()
    • getLanguageCode

      public LanguageCode getLanguageCode()
      Returns the related LanguageCode.
    • getEnum

      public static @Nullable NarrativeLanguage getEnum(@Nullable String isoCode)
      Gets the enum with a given ISO code.
      Parameters:
      isoCode - The ISO code value.
      Returns:
      The enum value found or null.