public class Validation
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Validation.DateOrder |
Constructor and Description |
---|
Validation() |
Modifier and Type | Method and Description |
---|---|
static java.util.Map<java.lang.Integer,java.lang.String> |
createRegexPatterns(UserInfo userInfo)
Creates regex patterns, based on locale.
|
static java.lang.String |
getAmountRegex(java.util.Locale locale)
returns amount regex based on locale
|
static java.lang.String |
getDateRegex(java.util.Locale locale,
java.lang.String calType,
boolean allowReversedDayAndMonth)
Returns a date regex based on locale, caltype and whether we allow revers day month in long month entries
|
static java.lang.String |
getDateTimeRegex(java.util.Locale locale,
java.lang.String date,
java.lang.String time) |
static java.lang.String |
getDecimalRegex(java.util.Locale locale)
returns decimal regex based on locale
|
static java.lang.String |
getDurationRegex(java.util.Locale locale)
returns duration regex based on locale
|
static java.lang.String |
getIntegerRegex(java.util.Locale locale)
returns integer regex based on locale
|
static java.lang.String |
getLongMonthRegex(java.util.Locale locale) |
static java.lang.String |
getTimeRegex(java.util.Locale locale) |
public static java.lang.String getLongMonthRegex(java.util.Locale locale)
public static java.lang.String getDateRegex(java.util.Locale locale, java.lang.String calType, boolean allowReversedDayAndMonth)
allowReversedDayAndMonth
- - should we allow reverse on long day/monthpublic static java.lang.String getIntegerRegex(java.util.Locale locale)
public static java.lang.String getDecimalRegex(java.util.Locale locale)
public static java.lang.String getDurationRegex(java.util.Locale locale)
public static java.lang.String getAmountRegex(java.util.Locale locale)
public static java.lang.String getTimeRegex(java.util.Locale locale)
public static java.lang.String getDateTimeRegex(java.util.Locale locale, java.lang.String date, java.lang.String time)
public static java.util.Map<java.lang.Integer,java.lang.String> createRegexPatterns(UserInfo userInfo)