com.jalios.jcms.tools
Class LangPropertiesChecker

java.lang.Object
  extended by 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

Field Summary
protected  LinkedHashMap<String,HashMap<String,Integer>> checkedPropertyMap
           
protected  org.apache.oro.text.regex.PatternCompiler compiler
           
protected  List<String> langList
           
protected  org.apache.oro.text.regex.PatternMatcher matcher
           
protected  org.apache.oro.text.regex.Pattern pattern
           
protected  LangProperties properties
           
protected  String regexp
           
static String REVISION
           
 
Constructor Summary
LangPropertiesChecker(LangProperties properties, List<String> langList)
           
 
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
 

Field Detail

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
Constructor Detail

LangPropertiesChecker

public LangPropertiesChecker(LangProperties properties,
                             List<String> langList)
Method Detail

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 :

Returns:
an empty string if no error was found, otherwise return a message describing all the problem that were found


Copyright © 2001-2010 Jalios SA. All Rights Reserved.