public class MessagesStore
extends org.pentaho.di.core.changed.ChangedFlag
| Constructor and Description |
|---|
MessagesStore(String locale,
String sourceFolder,
String messagesPackage,
Map<String,Map<String,List<KeyOccurrence>>> sourcePackageOccurrences)
Create a new messages store
|
| Modifier and Type | Method and Description |
|---|---|
String |
getFilename() |
String |
getLoadFilename(List<String> alternativeSourceFolders)
Find a suitable filename for the specified locale and messages package.
|
String |
getLocale() |
Map<String,String> |
getMessagesMap() |
String |
getMessagesPackage() |
String |
getSaveFilename(String directory)
Find a suitable filename to save this information in the specified locale and messages package.
|
String |
getSourceDirectory(List<String> directories) |
String |
getSourceFolder() |
void |
read(List<String> directories) |
void |
setFilename(String filename) |
void |
setLocale(String locale) |
void |
setMessagesMap(Map<String,String> messsagesMap) |
void |
setMessagesPackage(String messagesPackage) |
void |
setSourceFolder(String sourceFolder) |
void |
write() |
void |
write(String filename) |
public MessagesStore(String locale, String sourceFolder, String messagesPackage, Map<String,Map<String,List<KeyOccurrence>>> sourcePackageOccurrences)
locale - The locale to readsourceFolder - The source folder to readmessagesPackage - The messages package to considersourcePackageOccurrences - The occurrences mappublic void read(List<String> directories) throws org.pentaho.di.core.exception.KettleException
org.pentaho.di.core.exception.KettleExceptionpublic void write()
throws org.pentaho.di.core.exception.KettleException
org.pentaho.di.core.exception.KettleExceptionpublic void write(String filename) throws org.pentaho.di.core.exception.KettleException
org.pentaho.di.core.exception.KettleExceptionpublic String getLoadFilename(List<String> alternativeSourceFolders) throws FileNotFoundException
alternativeSourceFolders - directories - the source directories to try and map the messages files against.FileNotFoundExceptionpublic String getSaveFilename(String directory)
directory - the source directory to save the messages file in.public String getLocale()
public void setLocale(String locale)
locale - the locale to setpublic String getMessagesPackage()
public void setMessagesPackage(String messagesPackage)
messagesPackage - the messagesPackage to setpublic void setMessagesMap(Map<String,String> messsagesMap)
messsagesMap - the map to setpublic String getFilename()
public void setFilename(String filename)
public String getSourceFolder()
public void setSourceFolder(String sourceFolder)