Package io.cucumber.query
Enum NamingStrategy.ExampleName
- java.lang.Object
-
- java.lang.Enum<NamingStrategy.ExampleName>
-
- io.cucumber.query.NamingStrategy.ExampleName
-
- All Implemented Interfaces:
Serializable
,Comparable<NamingStrategy.ExampleName>
- Enclosing class:
- NamingStrategy
public static enum NamingStrategy.ExampleName extends Enum<NamingStrategy.ExampleName>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NUMBER
Number examples, for example#1.2
NUMBER_AND_PICKLE_IF_PARAMETERIZED
Number examples, and if the pickle name is parameterized include it too.PICKLE
Use the name of the pickle associated with the example.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NamingStrategy.ExampleName
valueOf(String name)
Returns 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 Detail
-
NUMBER
public static final NamingStrategy.ExampleName NUMBER
Number examples, for example#1.2
-
PICKLE
public static final NamingStrategy.ExampleName PICKLE
Use the name of the pickle associated with the example. For exampleEating 6 cucumbers
.
-
NUMBER_AND_PICKLE_IF_PARAMETERIZED
public static final NamingStrategy.ExampleName 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 Detail
-
values
public static NamingStrategy.ExampleName[] 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 (NamingStrategy.ExampleName c : NamingStrategy.ExampleName.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NamingStrategy.ExampleName 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
-
-