Package io.cucumber.query
Enum NamingStrategy.ExampleName
- All Implemented Interfaces:
Serializable,Comparable<NamingStrategy.ExampleName>,java.lang.constant.Constable
- Enclosing class:
- NamingStrategy
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionNumber examples, for example#1.2Number examples, and if the pickle name is parameterized include it too.Use the name of the pickle associated with the example. -
Method Summary
Modifier and TypeMethodDescriptionstatic NamingStrategy.ExampleNameReturns the enum constant of this type with the specified name.static NamingStrategy.ExampleName[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NUMBER
Number examples, for example#1.2 -
PICKLE
Use the name of the pickle associated with the example. For exampleEating 6 cucumbers. -
NUMBER_AND_PICKLE_IF_PARAMETERIZED
Number examples, and if the pickle name is parameterized include it too. For example#1.2: Eating 6 cucumbers.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-