public enum StringConvention extends Enum<StringConvention>
| Enum Constant and Description | 
|---|
| CAMEL_CASECamel case, lower case first letter. | 
| CAMEL_CASE_CAPITALIZEDCamel case capitalized like class names. | 
| HYPHENATEDHyphenated, in lower case. | 
| RAWRaw unconverted string. | 
| UNDER_SCORE_SEPARATEDHyphenated, in upper case. | 
| UNDER_SCORE_SEPARATED_LOWER_CASEHyphenated, in lower case. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | format(String str)Format the string with this format. | 
| static String | format(StringConvention convention,
      String str)Format a string according to a convention. | 
| static StringConvention | valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static StringConvention[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. | 
public static final StringConvention CAMEL_CASE_CAPITALIZED
public static final StringConvention CAMEL_CASE
public static final StringConvention HYPHENATED
public static final StringConvention RAW
public static final StringConvention UNDER_SCORE_SEPARATED
public static final StringConvention UNDER_SCORE_SEPARATED_LOWER_CASE
public static StringConvention[] values()
for (StringConvention c : StringConvention.values()) System.out.println(c);
public static StringConvention valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String format(String str)
str - The stringpublic static String format(StringConvention convention, String str)
convention - The string convention to usestr - The string to format