Enum Class StringValueMatch

java.lang.Object
java.lang.Enum<StringValueMatch>
io.quarkus.arc.properties.StringValueMatch
All Implemented Interfaces:
Serializable, Comparable<StringValueMatch>, Constable

public enum StringValueMatch extends Enum<StringValueMatch>
Defines how the stringValue of a property condition annotation is matched against the actual property value.
  • Enum Constant Details

    • EQ

      public static final StringValueMatch EQ
      Exact, case-sensitive string equality (the default).
    • REGEX

      public static final StringValueMatch REGEX
      The stringValue is interpreted as a regular expression and the actual property value is matched against it using Pattern.matches(String, CharSequence).

      The pattern must match the entire property value (equivalent to ^pattern$).

  • Method Details

    • values

      public static StringValueMatch[] 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 StringValueMatch 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