Enum Class PropertyBundle
- All Implemented Interfaces:
Serializable, Comparable<PropertyBundle>, Constable
Bundles filename manager (enum)
see `i18n/*`
- Since:
- 2026-01-30
PropertyBundle.java// Example usage final static ResourceBundle bundle = ResourceBundle.getBundle( PropertyBundle.DEFAULT_MESSAGES_BUNDLE.getBaseName(), currentLocale); - Version:
- 1.0
- Author:
- @ZouariOmar (zouariomar20@gmail.com)
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDefault application messages bundle.English application messages bundle.French application messages bundle.Bundle containing supported language labels. -
Method Summary
Modifier and TypeMethodDescriptionfinal StringReturns the base name used to resolve the bundle.static PropertyBundleReturns the enum constant of this class with the specified name.static PropertyBundle[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SUPPORTED_LANGUAGES_BUNDLE
Bundle containing supported language labels. -
DEFAULT_MESSAGES_BUNDLE
Default application messages bundle. -
ENGLISH_MESSAGES_BUNDLE
English application messages bundle. -
FRENCH_MESSAGES_BUNDLE
French application messages bundle.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getBaseName
Returns the base name used to resolve the bundle.- Returns:
- bundle base name
-