Enum NamingSchemes
- java.lang.Object
-
- java.lang.Enum<NamingSchemes>
-
- org.spongepowered.configurate.util.NamingSchemes
-
- All Implemented Interfaces:
Serializable,Comparable<NamingSchemes>,NamingScheme
public enum NamingSchemes extends Enum<NamingSchemes> implements NamingScheme
Standard naming schemes.- Since:
- 4.0.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CAMEL_CASEReformats names tocamelCasestyle.LOWER_CASE_DASHEDReformats names tolower-case-dashedformat.PASSTHROUGHPasses through names unchanged.SNAKE_CASEReformats names tosnake_caseformat.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NamingSchemesvalueOf(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 tocamelCasestyle.- Since:
- 4.0.0
-
SNAKE_CASE
public static final NamingSchemes SNAKE_CASE
Reformats names tosnake_caseformat.- Since:
- 4.0.0
-
LOWER_CASE_DASHED
public static final NamingSchemes LOWER_CASE_DASHED
Reformats names tolower-case-dashedformat.- 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(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
-
-