Enum Class TestBenchScenarioItemType

java.lang.Object
java.lang.Enum<TestBenchScenarioItemType>
com.vaadin.copilot.testbenchgenerator.TestBenchScenarioItemType
All Implemented Interfaces:
Serializable, Comparable<TestBenchScenarioItemType>, Constable

public enum TestBenchScenarioItemType extends Enum<TestBenchScenarioItemType>
Represents the type of item of a scenario item. Based on the type, the given scenario is cast to relevant class.
  • Enum Constant Details

  • Method Details

    • values

      public static TestBenchScenarioItemType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TestBenchScenarioItemType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • fromString

      public static TestBenchScenarioItemType fromString(String str)
      Finds the first matching item based on the string match. Ignores the case sensitivity.
      Parameters:
      str - string that will be searched in the values
      Returns:
      Enum value, or null if not found.