it.eng.qbe.utility
Class LocaleUtils

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

public class LocaleUtils
extends java.lang.Object

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)
          Return the label.properties file inf datamart JarFile as a Properties object
static java.util.Properties getLabelProperties(java.util.jar.JarFile jf, java.util.Locale loc)
          Return the label_.properties file inf datamart JarFile as a Properties object
static java.util.Locale getLocale(it.eng.spago.base.RequestContainer requestConatiner, java.lang.String qbeMode)
           
 
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)
Parameters:
requestConatiner: - Spago Request Container
qbeMode: - a parameter to determine if we're using QBE like a WebApp or like a Portlet
Returns:
a Locale Object

getLabelProperties

public static java.util.Properties getLabelProperties(java.util.jar.JarFile jf)
Return the label.properties file inf datamart JarFile as a Properties object

Parameters:
jf: - The JarFile of the datamart
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)
Return the label_.properties file inf datamart JarFile as a Properties object

Parameters:
jf: - The JarFile of the datamart
loc: - A locale
Returns:
the Properties reperesenting label.properties file inf datamart JarFile jf