Interface ConfigUtils


public interface ConfigUtils
The class ConfigUtils contains utilities for the configuration.
  • Field Details

    • DEFAULT_LANGUAGE

      static final int DEFAULT_LANGUAGE
      The field DEFAULT_LANGUAGE contains the index of the default language.
      See Also:
  • Method Details

    • defaultLanguage

      static String defaultLanguage(@NonNull @NonNull CtanConfiguration.CtanConfig config)
      The method defaultLanguage provides means to check the CtanConfiguration and extract the default language.
      Parameters:
      config - the CTAN configuration
      Returns:
      the default language
    • defaultLanguage

      static String defaultLanguage(@NonNull @NonNull CtanConfiguration config)
      The method defaultLanguage provides means to check the CtanConfiguration and extract the default language.
      Parameters:
      config - the CTAN configuration
      Returns:
      the default language
    • fallbackLanguage

      static String fallbackLanguage(@NonNull @NonNull CtanConfiguration.CtanConfig config, String locale)
      The method fallbackLanguage provides means to check the language or extract the default language from the configuration.
      Parameters:
      config - the CTAN configuration
      locale - the language
      Returns:
      the language
    • languages

      static String[] languages(@NonNull @NonNull CtanConfiguration.CtanConfig config)
      The method languages provides means to extract the supported languages from the configuration.
      Parameters:
      config - the CTAN configuration
      Returns:
      the supported languages