Enum Class PropertyBundle

java.lang.Object
java.lang.Enum<PropertyBundle>
com.serinity.accesscontrol.flag.PropertyBundle
All Implemented Interfaces:
Serializable, Comparable<PropertyBundle>, Constable

public enum PropertyBundle extends Enum<PropertyBundle>
Bundles filename manager (enum)

see `i18n/*`

Since:
2026-01-30
// Example usage
final static ResourceBundle bundle = ResourceBundle.getBundle(
    PropertyBundle.DEFAULT_MESSAGES_BUNDLE.getBaseName(),
    currentLocale);
PropertyBundle.java
Version:
1.0
Author:
@ZouariOmar (zouariomar20@gmail.com)
  • Enum Constant Details

    • SUPPORTED_LANGUAGES_BUNDLE

      public static final PropertyBundle SUPPORTED_LANGUAGES_BUNDLE
      Bundle containing supported language labels.
    • DEFAULT_MESSAGES_BUNDLE

      public static final PropertyBundle DEFAULT_MESSAGES_BUNDLE
      Default application messages bundle.
    • ENGLISH_MESSAGES_BUNDLE

      public static final PropertyBundle ENGLISH_MESSAGES_BUNDLE
      English application messages bundle.
    • FRENCH_MESSAGES_BUNDLE

      public static final PropertyBundle FRENCH_MESSAGES_BUNDLE
      French application messages bundle.
  • Method Details

    • values

      public static PropertyBundle[] 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 PropertyBundle 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
    • getBaseName

      public final String getBaseName()
      Returns the base name used to resolve the bundle.
      Returns:
      bundle base name