public class LocaleStore extends Object
Constructor and Description |
---|
LocaleStore(LogChannelInterface log,
String locale,
String mainLocale,
Map<String,Map<String,List<KeyOccurrence>>> sourcePackageOccurrences)
Create a new LocaleStore
|
Modifier and Type | Method and Description |
---|---|
String |
getLocale() |
String |
getMainLocale() |
Map<String,SourceStore> |
getSourceMap() |
void |
read(List<String> directories)
Read all the messages stores from the specified locale from all the specified packages
|
void |
setLocale(String locale) |
void |
setMainLocale(String mainLocale) |
public LocaleStore(LogChannelInterface log, String locale, String mainLocale, Map<String,Map<String,List<KeyOccurrence>>> sourcePackageOccurrences)
locale
- The locale to handlemessagesPackages
- the packages to handle per source folderpackageOccurrences
- public void read(List<String> directories) throws KettleException
directories
- directories
- The source directories to reference the packages fromKettleException
public String getLocale()
public void setLocale(String locale)
locale
- the locale to setpublic String getMainLocale()
public void setMainLocale(String mainLocale)
mainLocale
- the mainLocale to setpublic Map<String,SourceStore> getSourceMap()
Copyright © 2019 Hitachi Vantara. All rights reserved.