com.jalios.jcms.tools
Class LangPropertiesChecker
java.lang.Object
  
com.jalios.jcms.tools.LangPropertiesChecker
public class LangPropertiesChecker
- extends Object
 
Check language properties for missing or duplicated internationalization string.
- Since:
 
  - jcms-5.0.1
 
- Version:
 
  - $Revision: 22372 $
 
- Author:
 
  - Olivier Jaquemet 
 
 
 
| 
Method Summary | 
protected  void | 
addPropertyKey(String propKey)
 
            | 
 String | 
checkProperties()
 
          Performs the following checks on the loaded languages properties :
 
   property missing in one of the required language
   property defined multiple times
  | 
static void | 
main(String[] args)
 
            | 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
REVISION
public static final String REVISION
- See Also:
 - Constant Field Values
 
compiler
protected final org.apache.oro.text.regex.PatternCompiler compiler
matcher
protected final org.apache.oro.text.regex.PatternMatcher matcher
properties
protected LangProperties properties
langList
protected List<String> langList
regexp
protected String regexp
pattern
protected org.apache.oro.text.regex.Pattern pattern
checkedPropertyMap
protected LinkedHashMap<String,HashMap<String,Integer>> checkedPropertyMap
LangPropertiesChecker
public LangPropertiesChecker(LangProperties properties,
                             List<String> langList)
main
public static void main(String[] args)
                 throws IOException
- Throws:
 IOException
 
addPropertyKey
protected void addPropertyKey(String propKey)
 
checkProperties
public String checkProperties()
- Performs the following checks on the loaded languages properties :
 
   - property missing in one of the required language
 
   - property defined multiple times
 
 
- Returns:
 - an empty string if no error was found, otherwise return a
         message describing all the problem that were found
 
 
 
Copyright © 2001-2007 Jalios SA. All Rights Reserved.