com.jalios.jcms.tools
Class LangPropertiesChecker
java.lang.Object
com.jalios.jcms.tools.LangPropertiesChecker
public class LangPropertiesChecker
- extends java.lang.Object
Check language properties for missing or duplicated internationalization string.
- Since:
- jcms-5.0.1
- Version:
- $Revision: 22372 $
- Author:
- Olivier Jaquemet
|
Field Summary |
protected java.util.LinkedHashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.Integer>> |
checkedPropertyMap
|
protected org.apache.oro.text.regex.PatternCompiler |
compiler
|
protected java.util.List<java.lang.String> |
langList
|
protected org.apache.oro.text.regex.PatternMatcher |
matcher
|
protected org.apache.oro.text.regex.Pattern |
pattern
|
protected LangProperties |
properties
|
protected java.lang.String |
regexp
|
static java.lang.String |
REVISION
|
|
Method Summary |
protected void |
addPropertyKey(java.lang.String propKey)
|
java.lang.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(java.lang.String[] args)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
REVISION
public static final java.lang.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 java.util.List<java.lang.String> langList
regexp
protected java.lang.String regexp
pattern
protected org.apache.oro.text.regex.Pattern pattern
checkedPropertyMap
protected java.util.LinkedHashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.Integer>> checkedPropertyMap
LangPropertiesChecker
public LangPropertiesChecker(LangProperties properties,
java.util.List<java.lang.String> langList)
main
public static void main(java.lang.String[] args)
throws java.io.IOException
- Throws:
java.io.IOException
addPropertyKey
protected void addPropertyKey(java.lang.String propKey)
checkProperties
public java.lang.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-2010 Jalios SA. All Rights Reserved.