com.bankframe.admin.tools
Class PropertyResourceBundleGenerator

java.lang.Object
  extended bycom.bankframe.admin.tools.PropertyResourceBundleGenerator

public class PropertyResourceBundleGenerator
extends java.lang.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.


Field Summary
static java.lang.String CLASS_NAME_TOKEN
           
 
Constructor Summary
PropertyResourceBundleGenerator(java.lang.String destinationDirectory, java.lang.String bundleName, java.lang.String language, java.lang.String country)
          Creates new PropertyResourceBundleGenerator.
 
Method Summary
static void displayUsage()
          This method outputs usage help/information for this utility
static void main(java.lang.String[] argv)
          Generates PropertyResourceBundle args: [destdirectory] [bundlename] [language] {country}
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_NAME_TOKEN

public static final java.lang.String CLASS_NAME_TOKEN
See Also:
Constant Field Values
Constructor Detail

PropertyResourceBundleGenerator

public PropertyResourceBundleGenerator(java.lang.String destinationDirectory,
                                       java.lang.String bundleName,
                                       java.lang.String language,
                                       java.lang.String country)
Creates new PropertyResourceBundleGenerator.

Parameters:
destinationDirectory - String - location to place generated java class
language - String - language of the bundle.
country - String - country derivitive of language.
Method Detail

displayUsage

public static void displayUsage()
This method outputs usage help/information for this utility


main

public static void main(java.lang.String[] argv)
Generates PropertyResourceBundle args: [destdirectory] [bundlename] [language] {country}



Copyright © 2005, 2007, Oracle. All rights reserved.