public class LangPropertiesChecker
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
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 |
static java.util.regex.Pattern |
DATE_PARAMETER_PATTERN
Pattern used to match all date parameter such as
{0,date,yyyy/MM/dd HH:mm} in a property value |
protected org.apache.oro.text.regex.Pattern |
keyPattern |
protected java.util.List<java.lang.String> |
langList |
protected org.apache.oro.text.regex.PatternMatcher |
matcher |
protected org.apache.oro.text.regex.Pattern |
paramPattern |
protected LangProperties |
properties |
static java.lang.String |
REVISION |
Constructor and Description |
---|
LangPropertiesChecker(LangProperties properties,
java.util.List<java.lang.String> langList) |
Modifier and Type | Method and Description |
---|---|
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) |
static void |
usage() |
public static final java.lang.String REVISION
protected final org.apache.oro.text.regex.PatternCompiler compiler
protected final org.apache.oro.text.regex.PatternMatcher matcher
protected LangProperties properties
protected java.util.List<java.lang.String> langList
protected org.apache.oro.text.regex.Pattern keyPattern
protected org.apache.oro.text.regex.Pattern paramPattern
protected java.util.LinkedHashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.Integer>> checkedPropertyMap
public static final java.util.regex.Pattern DATE_PARAMETER_PATTERN
{0,date,yyyy/MM/dd HH:mm}
in a property valuepublic LangPropertiesChecker(LangProperties properties, java.util.List<java.lang.String> langList)
public static void usage()
public static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException
protected void addPropertyKey(java.lang.String propKey)
public java.lang.String checkProperties()
Copyright © 2001-2010 Jalios SA. All Rights Reserved.