Enum Class PatternGrammar

java.lang.Object
java.lang.Enum<PatternGrammar>
io.scanbot.sdk.textpattern.PatternGrammar
All Implemented Interfaces:
Serializable, Comparable<PatternGrammar>, Constable

public enum PatternGrammar extends Enum<PatternGrammar>
Grammar of pattern matching.
  • Enum Constant Details

    • WILDCARD

      public static final PatternGrammar WILDCARD
      Simple pattern matching where # stands for any digit and ? stands for any character. All other characters represent themselves.
    • REGEX

      public static final PatternGrammar REGEX
      Regular expression pattern matching. Uses ECMAScript grammar.
  • Method Details

    • values

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