public abstract class MiscUtil extends Object
Constructor and Description |
---|
MiscUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
contains(String name,
Iterable<String> patterns)
Does the given column name contains one of pattern given in parameter Not case sensitive
|
static boolean |
endsWithIgnoreCase(String name,
Iterable<String> patterns)
Does the given column name ends with one of pattern given in parameter.
|
static boolean |
equalsIgnoreCase(String name,
Iterable<String> patterns)
Does the given column name equals ignore case with one of pattern given in parameter
|
static boolean |
isUniCase(String value)
Return true if the passed value is all lower or all upper case.
|
static boolean |
isWithinAnUnderscorePatternButIsNotJavaBeanSpecificCase(String value,
int position) |
static boolean |
startsWithIgnoreCase(String name,
Iterable<String> patterns)
Does the given column name starts with one of pattern given in parameter Not case sensitive
|
static String |
toName(String name)
Helper method, do the same as convertName with wimpsy caps as false
|
static String |
toReadableLabel(String value)
Convert strings such as bankAccountSummary to "Bank Account Summary"
|
static String |
toReadablePluralLabel(String value)
Convert strings such as "banquePayss" to "Banque Pays" it will remove trailing ss and replace them with s
|
static String |
toVar(String name) |
public static String toName(String name)
convertName(String, boolean)
public static String toReadablePluralLabel(String value)
public static String toReadableLabel(String value)
public static boolean endsWithIgnoreCase(String name, Iterable<String> patterns)
public static boolean startsWithIgnoreCase(String name, Iterable<String> patterns)
public static boolean contains(String name, Iterable<String> patterns)
public static boolean equalsIgnoreCase(String name, Iterable<String> patterns)
c
- the columnpatterns
- table of patterns as stringspublic static boolean isUniCase(String value)
public static boolean isWithinAnUnderscorePatternButIsNotJavaBeanSpecificCase(String value, int position)
Copyright © 2005-2013 JAXIO S.A.R.L. - All Rights Reserved.