| java.lang.Object com.completex.objective.tools.generators.NameHelper
NameHelper | public class NameHelper (Code) | | author: Gennady Krizhevsky |
Inner Class :public static class PrefixResover extends FixResolver | |
Inner Class :public static class SuffixResover extends FixResolver | |
Inner Class :abstract public static class FixResolver | |
Method Summary | |
public static String | addPrefixAndSuffix(String name, String prefix, String suffix) | public static String | capitalizeField(String s) | public static String | capitalizeFirstChar(String name) | public static String | decapitalizeField(String name) Utility method to take a string and convert it to normal Java variable
name capitalization. | public static String | indent(String data, int level) | public static String | inverseCase(String name) | public static boolean | isExactAlias(String token) | public static boolean | isMainPattern(String name) | public static boolean | isMixedCase(String name) | public static String | javaConstName(String prefix, String name) | public static String | javaName(String name, String prefix, String suffix, boolean calitalizeFirstChar) | public static String | javaName(String name, String prefix, String suffix, boolean calitalizeFirstChar, boolean mainPattern) | public static String | lowerFirstChar(String name) | public static void | main(String[] args) | public static String | name(String prefix, String name, String sep, int letterCase) | public String | parseColumnAlias(MetaColumn metaColumn) | public static String | parseExactAlias(String token) | public static void | println(String data, int level) | public static void | println(String data, int level, PrintStream printStream) | public static String | propertyName(String name, String prefix, String suffix) | public static String | spaces(int level) |
AS_IS | final public static int AS_IS(Code) | | |
CHAR_BEGIN | final public static char CHAR_BEGIN(Code) | | |
CHAR_END | final public static char CHAR_END(Code) | | |
EXACT_NAME_LEFT_BRACKET | final public static String EXACT_NAME_LEFT_BRACKET(Code) | | |
EXACT_NAME_RIGHT_BRACKET | final public static String EXACT_NAME_RIGHT_BRACKET(Code) | | |
LOWER | final public static int LOWER(Code) | | |
STEP | final public static int STEP(Code) | | |
UPPER | final public static int UPPER(Code) | | |
prefixResover | static PrefixResover prefixResover(Code) | | |
suffixResover | static SuffixResover suffixResover(Code) | | |
capitalizeField | public static String capitalizeField(String s)(Code) | | Capitalizes field name in Java Bean style
Parameters: s - field name in Java Bean capitalized style |
decapitalizeField | public static String decapitalizeField(String name)(Code) | | Utility method to take a string and convert it to normal Java variable
name capitalization. This normally means converting the first
character from upper case to lower case, but in the (unusual) special
case when there is more than one character and both the first and
second characters are upper case, we leave it alone.
Thus "FooBah" becomes "fooBah" and "X" becomes "x", but "URL" stays
as "URL".
Parameters: name - The string to be decapitalized. The decapitalized version of the string. |
isExactAlias | public static boolean isExactAlias(String token)(Code) | | |
isMainPattern | public static boolean isMainPattern(String name)(Code) | | |
isMixedCase | public static boolean isMixedCase(String name)(Code) | | |
println | public static void println(String data, int level)(Code) | | |
|
|