Class LocalizationFragment.Namespace

java.lang.Object
com.tccc.kos.commons.util.json.fragments.LocalizationFragment.Namespace
Enclosing class:
LocalizationFragment

public static class LocalizationFragment.Namespace extends Object
  • Constructor Details

    • Namespace

      public Namespace()
  • Method Details

    • getLocales

      public Map<String,String> getLocales()
      Return the collection of locales defined in this namespace. Each locale name is expected to be an ISO 639 alpha2 country code with optional ISO 3166 alpha2 country code separated by dash or underscore. The value associated with each locale is a path within the kab to the file that contains the translations.
    • getFallbackLocales

      public Map<String,List<String>> getFallbackLocales()
      Return the collection of fallback locales for a specified locale. This is used by the ui to back fill missing translations.
    • setLocales

      public void setLocales(Map<String,String> locales)
    • setFallbackLocales

      public void setFallbackLocales(Map<String,List<String>> fallbackLocales)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object