org.omnaest.i18nbinder.internal
Class ModifierHelper

java.lang.Object
  extended by org.omnaest.i18nbinder.internal.ModifierHelper

public class ModifierHelper
extends Object

Creates a XLSFile from a given list of property files or modifies the property files based on the XLSFile.

Author:
Omnaest

Nested Class Summary
protected static class ModifierHelper.FilenameToPropertyKeyToValueMap
           
protected static class ModifierHelper.PropertyKeyToValueMap
           
 
Field Summary
static String GROUPING_PATTERN_REPLACEMENT_PATTERN_STRING
           
static Logger logger
           
 
Constructor Summary
ModifierHelper()
           
 
Method Summary
static XLSFile createXLSFileFromPropertyFiles(Set<File> propertyFileSet, LocaleFilter localeFilter, String fileNameLocaleGroupPattern, List<Integer> groupingPatternGroupingGroupIndexList)
          Creates a new XLSFile based on a set of files.
static void writeXLSFileContentToPropertyFiles(File file, String fileEncoding, LocaleFilter localeFilter, boolean deletePropertiesWithBlankValue)
          This method writes the values resolved by the xls file back to the property files.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GROUPING_PATTERN_REPLACEMENT_PATTERN_STRING

public static final String GROUPING_PATTERN_REPLACEMENT_PATTERN_STRING
See Also:
Constant Field Values

logger

public static Logger logger
Constructor Detail

ModifierHelper

public ModifierHelper()
Method Detail

writeXLSFileContentToPropertyFiles

public static void writeXLSFileContentToPropertyFiles(File file,
                                                      String fileEncoding,
                                                      LocaleFilter localeFilter,
                                                      boolean deletePropertiesWithBlankValue)
This method writes the values resolved by the xls file back to the property files. Non existing property files are created, existing ones modified.

Parameters:
xlsFile -
fileEncoding - : encoding of the file like UTF-8. If null is passed the default file encoding is used.
localeFilter -
deletePropertiesWithBlankValue -

createXLSFileFromPropertyFiles

public static XLSFile createXLSFileFromPropertyFiles(Set<File> propertyFileSet,
                                                     LocaleFilter localeFilter,
                                                     String fileNameLocaleGroupPattern,
                                                     List<Integer> groupingPatternGroupingGroupIndexList)
Creates a new XLSFile based on a set of files.

Parameters:
propertyFileSet -
localeFilter -
fileNameLocaleGroupPattern -
groupingPatternGroupingGroupIndexList -
Returns:


Copyright © 2012. All Rights Reserved.