Package com.sun.tools.corba.ee.idl
Class ResourceBundleUtil
- java.lang.Object
-
- com.sun.tools.corba.ee.idl.ResourceBundleUtil
-
public class ResourceBundleUtil extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.ResourceBundle
fBundle
-
Constructor Summary
Constructors Constructor Description ResourceBundleUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getMessage(java.lang.String key, java.lang.String... fill)
static java.util.ResourceBundle
getResourceBundle()
Gets the current ResourceBundle.static java.lang.String
getVersion()
Fetch the version number of this build of the IDL Parser Framework.static void
registerResourceBundle(java.util.ResourceBundle bundle)
Register a ResourceBundle.
-
-
-
Method Detail
-
getVersion
public static java.lang.String getVersion()
Fetch the version number of this build of the IDL Parser Framework. This method may be called before or after the framework has been initialized. If the framework is inititialized, the version information is extracted from the message properties object; otherwise, it is extracted from the indicated resouce bundle.- Returns:
- the version number.
-
getMessage
public static java.lang.String getMessage(java.lang.String key, java.lang.String... fill)
-
registerResourceBundle
public static void registerResourceBundle(java.util.ResourceBundle bundle)
Register a ResourceBundle. This file will be searched for in the CLASSPATH.- Parameters:
bundle
- bundle to set as the current ResourceBundle
-
getResourceBundle
public static java.util.ResourceBundle getResourceBundle()
Gets the current ResourceBundle.- Returns:
- the current ResourceBundle
-
-