Package net.sourceforge.pmd.util
Enum StringUtil.CaseConvention
- java.lang.Object
-
- java.lang.Enum<StringUtil.CaseConvention>
-
- net.sourceforge.pmd.util.StringUtil.CaseConvention
-
- All Implemented Interfaces:
Serializable
,Comparable<StringUtil.CaseConvention>
- Enclosing class:
- StringUtil
public static enum StringUtil.CaseConvention extends Enum<StringUtil.CaseConvention>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CAMEL_CASE
camelCase.PASCAL_CASE
PascalCase.SCREAMING_SNAKE_CASE
SCREAMING_SNAKE_CASE.SPACE_SEPARATED
space separated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
convertTo(StringUtil.CaseConvention to, String name)
static StringUtil.CaseConvention
valueOf(String name)
Returns the enum constant of this type with the specified name.static StringUtil.CaseConvention[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SCREAMING_SNAKE_CASE
public static final StringUtil.CaseConvention SCREAMING_SNAKE_CASE
SCREAMING_SNAKE_CASE.
-
CAMEL_CASE
public static final StringUtil.CaseConvention CAMEL_CASE
camelCase.
-
PASCAL_CASE
public static final StringUtil.CaseConvention PASCAL_CASE
PascalCase.
-
SPACE_SEPARATED
public static final StringUtil.CaseConvention SPACE_SEPARATED
space separated.
-
-
Method Detail
-
values
public static StringUtil.CaseConvention[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (StringUtil.CaseConvention c : StringUtil.CaseConvention.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StringUtil.CaseConvention valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
convertTo
public String convertTo(StringUtil.CaseConvention to, String name)
-
-