it.eng.qbe.locale
Class LocaleUtils

java.lang.Object
  extended by it.eng.qbe.locale.LocaleUtils

public class LocaleUtils
extends java.lang.Object

The Class LocaleUtils.

Author:
Andrea Zoppello A Class that contains utilities for i18n

Constructor Summary
LocaleUtils()
           
 
Method Summary
static java.util.Properties getLabelProperties(java.util.jar.JarFile jf)
          Deprecated. use DatamartLabelsDAOF
static java.util.Properties getLabelProperties(java.util.jar.JarFile jf, java.util.Locale loc)
          Deprecated. use DatamartLabelsDAOF
static java.util.Locale getLocale(it.eng.spago.base.RequestContainer requestConatiner, java.lang.String qbeMode)
          Gets the locale.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocaleUtils

public LocaleUtils()
Method Detail

getLocale

public static java.util.Locale getLocale(it.eng.spago.base.RequestContainer requestConatiner,
                                         java.lang.String qbeMode)
Gets the locale.

Parameters:
requestConatiner - the request conatiner
qbeMode - the qbe mode
Returns:
a Locale Object

getLabelProperties

public static java.util.Properties getLabelProperties(java.util.jar.JarFile jf)
Deprecated. use DatamartLabelsDAOF

Return the label.properties file inf datamart JarFile as a Properties object

Parameters:
jf - the jf
Returns:
the Properties reperesenting label.properties file inf datamart JarFile jf

getLabelProperties

public static java.util.Properties getLabelProperties(java.util.jar.JarFile jf,
                                                      java.util.Locale loc)
Deprecated. use DatamartLabelsDAOF

Return the label_.properties file inf datamart JarFile as a Properties object

Parameters:
jf - the jf
loc - the loc
Returns:
the Properties reperesenting label.properties file inf datamart JarFile jf the Properties reperesenting label_.properties file inf datamart JarFile jf