Class ResourceBundle
-
- All Implemented Interfaces:
@Deprecated() public class ResourceBundleClass that represents a resource. Each resource has name, version, extension, and a boolean filed that says if it is a default bundle or not. Deprecated since 3.2, replaced with ClientResourceBundle
-
-
Field Summary
Fields Modifier and Type Field Description public StringbundleNamepublic StringbundleVersionpublic booleanisDefault
-
Constructor Summary
Constructors Constructor Description ResourceBundle(String name, String version, String extenstion, boolean isDefault)Constructor for a default bundle.
-
Method Summary
Modifier and Type Method Description StringgetBundleName()Get the name of the bundle. StringgetBundleVersion()Get the version of the bundle. booleanisDefault()Get if the bundle is default or not. StringgetBundleExtension()Get the extension of the bundle -
-
Constructor Detail
-
ResourceBundle
ResourceBundle(String name, String version, String extenstion, boolean isDefault)
Constructor for a default bundle.
- Parameters:
name- name of the bundleversion- version of the bundleextenstion- the extenstion of the bundle it could like pdf, doc, txt, etc..isDefault- flag that marks if this is a default bundle or not
-
-
Method Detail
-
getBundleName
@NonNull() String getBundleName()
Get the name of the bundle.
- Returns:
String that is name of the bundle
-
getBundleVersion
@NonNull() String getBundleVersion()
Get the version of the bundle.
- Returns:
String that is the version of the bundle
-
isDefault
boolean isDefault()
Get if the bundle is default or not.
- Returns:
true if the bundle is default else false
-
getBundleExtension
@NonNull() String getBundleExtension()
Get the extension of the bundle
- Returns:
String that is the extension of the bundle
-
-
-
-