Package software.amazon.smithy.linters
Enum CamelCaseValidator.MemberNameHandling
- java.lang.Object
-
- java.lang.Enum<CamelCaseValidator.MemberNameHandling>
-
- software.amazon.smithy.linters.CamelCaseValidator.MemberNameHandling
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CamelCaseValidator.MemberNameHandling>
- Enclosing class:
- CamelCaseValidator
public static enum CamelCaseValidator.MemberNameHandling extends java.lang.Enum<CamelCaseValidator.MemberNameHandling>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTO
Member names are serialized using either all lower camel or all upper camel, but not a mixture.LOWER
Member names are serialized using lower camel case (e.g., fooBar).UPPER
Member names are serialized using upper camel case (e.g., FooBar).
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CamelCaseValidator.MemberNameHandling
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CamelCaseValidator.MemberNameHandling[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UPPER
public static final CamelCaseValidator.MemberNameHandling UPPER
Member names are serialized using upper camel case (e.g., FooBar).
-
LOWER
public static final CamelCaseValidator.MemberNameHandling LOWER
Member names are serialized using lower camel case (e.g., fooBar).
-
AUTO
public static final CamelCaseValidator.MemberNameHandling AUTO
Member names are serialized using either all lower camel or all upper camel, but not a mixture.
-
-
Method Detail
-
values
public static CamelCaseValidator.MemberNameHandling[] 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 (CamelCaseValidator.MemberNameHandling c : CamelCaseValidator.MemberNameHandling.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CamelCaseValidator.MemberNameHandling 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
-
-