Enum NamingSchemes
- java.lang.Object
-
- java.lang.Enum<NamingSchemes>
-
- org.spongepowered.configurate.util.NamingSchemes
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<NamingSchemes>
,NamingScheme
public enum NamingSchemes extends java.lang.Enum<NamingSchemes> implements NamingScheme
Standard naming schemes.- Since:
- 4.0.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CAMEL_CASE
Reformats names tocamelCase
style.LOWER_CASE_DASHED
Reformats names tolower-case-dashed
format.PASSTHROUGH
Passes through names unchanged.SNAKE_CASE
Reformats names tosnake_case
format.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NamingSchemes
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static NamingSchemes[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface org.spongepowered.configurate.util.NamingScheme
coerce
-
-
-
-
Enum Constant Detail
-
PASSTHROUGH
public static final NamingSchemes PASSTHROUGH
Passes through names unchanged.- Since:
- 4.0.0
-
CAMEL_CASE
public static final NamingSchemes CAMEL_CASE
Reformats names tocamelCase
style.- Since:
- 4.0.0
-
SNAKE_CASE
public static final NamingSchemes SNAKE_CASE
Reformats names tosnake_case
format.- Since:
- 4.0.0
-
LOWER_CASE_DASHED
public static final NamingSchemes LOWER_CASE_DASHED
Reformats names tolower-case-dashed
format.- Since:
- 4.0.0
-
-
Method Detail
-
values
public static NamingSchemes[] 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 (NamingSchemes c : NamingSchemes.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NamingSchemes valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-