Class EditableResourceBundleSet

java.lang.Object
com.aoapps.hodgepodge.i18n.EditableResourceBundleSet

public class EditableResourceBundleSet extends Object
Groups resource bundles into a set. Only the most recent bundle created per locale is kept.
Author:
AO Industries, Inc.
  • Constructor Details

    • EditableResourceBundleSet

      public EditableResourceBundleSet(String baseName, Collection<Locale> locales)
      Parameters:
      baseName - the base name of the default locale's bundle.
      locales - the set of all allowed locales.
    • EditableResourceBundleSet

      public EditableResourceBundleSet(Class<?> baseName, Collection<Locale> locales)
      Parameters:
      baseName - the class to use as the base name of the default locale's bundle.
      locales - the set of all allowed locales.
    • EditableResourceBundleSet

      public EditableResourceBundleSet(String baseName, Locale... locales)
      Parameters:
      baseName - the base name of the default locale's bundle.
      locales - the set of all allowed locales.
    • EditableResourceBundleSet

      public EditableResourceBundleSet(Class<?> baseName, Locale... locales)
      Parameters:
      baseName - the class to use as the base name of the default locale's bundle.
      locales - the set of all allowed locales.
  • Method Details

    • getBaseName

      public String getBaseName()
    • getLocales

      public SortedSet<Locale> getLocales()
      Gets the unmodifiable set of all locales supported by this bundle set.
    • getResourceBundle

      public EditableResourceBundle getResourceBundle(Locale locale)
      Gets the editable bundle for the provided locale.