org.jaffa.util
Class LocaleHelper
java.lang.Object
   org.jaffa.util.LocaleHelper
org.jaffa.util.LocaleHelper
- public class LocaleHelper- extends Object
This is a helper routine used for the internationalization of datatypes. It extracts formats from a properties file based on datatype and locale country and language codes.
- Author:
- JonnyR
 
| Method Summary | 
| static String | determineLayout(String inputLayout)This method will obtain obtain the layout by invoking the getProperty() method,
 if the inputLayout is enclosed in square brackets.
 | 
| static String | getProperty(String dataType)Returns a format based on country and language from the locale.properties file
 | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
LocaleHelper
public LocaleHelper()
getProperty
public static String getProperty(String dataType)
- Returns a format based on country and language from the locale.properties file
 
- 
- Parameters:
- dataType- datatype that the format is requested for
- Returns:
- returns a format string for parsing and formatting a datatype
 
determineLayout
public static String determineLayout(String inputLayout)
- This method will obtain obtain the layout by invoking the getProperty() method,
 if the inputLayout is enclosed in square brackets. Eg. [Xyz].
 Otherwise, it simply returns the inputLayout.
 A null is returned, in case the input is null.
 
- 
- Parameters:
- inputLayout- the input layout to be parsed
- Returns:
- the parsed layout.
 
Copyright © 2002-2004 JAFFA Project.