org.pentaho.di.ui.i18n
Class LocaleStore

java.lang.Object
  extended by org.pentaho.di.ui.i18n.LocaleStore

public class LocaleStore
extends Object

This class stores all the messages for a locale for all the used packages...

Author:
matt

Constructor Summary
LocaleStore(LogChannelInterface log, String locale, List<String> messagesPackages, String mainLocale, Map<String,List<KeyOccurrence>> packageOccurrences)
          Create a new LocaleStore
 
Method Summary
 String getLocale()
           
 Map<String,MessagesStore> getLocaleMap()
           
 String getMainLocale()
           
 List<String> getMessagesPackages()
           
 Map<String,List<KeyOccurrence>> getPackagesOccurrences()
           
 void read(List<String> directories)
          Read all the messages stores from the specified locale from all the specified packages
 void setLocale(String locale)
           
 void setLocaleMap(Map<String,MessagesStore> localeMap)
           
 void setMainLocale(String mainLocale)
           
 void setMessagesPackages(List<String> messagesPackages)
           
 void setPackagesOccurrences(Map<String,List<KeyOccurrence>> packagesOccurrences)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocaleStore

public LocaleStore(LogChannelInterface log,
                   String locale,
                   List<String> messagesPackages,
                   String mainLocale,
                   Map<String,List<KeyOccurrence>> packageOccurrences)
Create a new LocaleStore

Parameters:
locale - The locale to handle
messagesPackages - the packages to handle
packageOccurrences -
Method Detail

read

public void read(List<String> directories)
          throws KettleException
Read all the messages stores from the specified locale from all the specified packages

Parameters:
directories - The source directories to reference the packages from
Throws:
KettleException

getMessagesPackages

public List<String> getMessagesPackages()
Returns:
the messagesPackages

setMessagesPackages

public void setMessagesPackages(List<String> messagesPackages)
Parameters:
messagesPackages - the messagesPackages to set

getLocale

public String getLocale()
Returns:
the locale

setLocale

public void setLocale(String locale)
Parameters:
locale - the locale to set

getMainLocale

public String getMainLocale()
Returns:
the mainLocale

setMainLocale

public void setMainLocale(String mainLocale)
Parameters:
mainLocale - the mainLocale to set

getLocaleMap

public Map<String,MessagesStore> getLocaleMap()
Returns:
the localeMap

setLocaleMap

public void setLocaleMap(Map<String,MessagesStore> localeMap)
Parameters:
localeMap - the localeMap to set

getPackagesOccurrences

public Map<String,List<KeyOccurrence>> getPackagesOccurrences()
Returns:
the packagesOccurrences

setPackagesOccurrences

public void setPackagesOccurrences(Map<String,List<KeyOccurrence>> packagesOccurrences)
Parameters:
packagesOccurrences - the packagesOccurrences to set