com.bankframe.admin.tools
Class PropertyResourceBundleGenerator
java.lang.Object
com.bankframe.admin.tools.PropertyResourceBundleGenerator
public class PropertyResourceBundleGenerator
- extends Object
This class generate a PropertyResourceBundle class for a specified locale.
Using the ResourceBundleTemplate a new ResourceBundle Class is created for
a locale.
The purpose of this class is to automate the manual process of creating
a new PropertyResourceBundle class for each locale you wish to provide
localised messages for.
The class merges BundleName, Language and Country values with
the ResourceBundleTemplate to create a new PropertyResourceBundle for a locale.
Method Summary |
static void |
displayUsage()
This method outputs usage help/information for this utility |
static void |
main(String[] argv)
Generates PropertyResourceBundle
args: [destdirectory] [bundlename] [language] {country} |
CLASS_NAME_TOKEN
public static final String CLASS_NAME_TOKEN
- See Also:
- Constant Field Values
PropertyResourceBundleGenerator
public PropertyResourceBundleGenerator(String destinationDirectory,
String bundleName,
String language,
String country)
- Creates new PropertyResourceBundleGenerator.
- Parameters:
destinationDirectory
- String - location to place generated java classbundleName
- String - name of bundle to to createlanguage
- String - language of the bundle.country
- String - country derivitive of language.
displayUsage
public static void displayUsage()
- This method outputs usage help/information for this utility
main
public static void main(String[] argv)
- Generates PropertyResourceBundle
args: [destdirectory] [bundlename] [language] {country}
Copyright © 2005, 2007, Oracle. All rights reserved.