Enum MatcherType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<MatcherType>

    public enum MatcherType
    extends java.lang.Enum<MatcherType>
    Matcher types actually actually supported by the framework.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getCssRepresentation()
      Return the css representation of the matcher
      java.lang.String getLabel()
      Get the label of this matcher type
      static MatcherType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static MatcherType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • CONTAINS

        public static final MatcherType CONTAINS
        Contains.
      • STARTS_WITH

        public static final MatcherType STARTS_WITH
        Starts with.
      • ENDS_WITH

        public static final MatcherType ENDS_WITH
        Ends with.
      • CONTAINS_WORD

        public static final MatcherType CONTAINS_WORD
        Contains word.
      • EQUALS

        public static final MatcherType EQUALS
        Equal.
      • NOT_CONTAINS

        public static final MatcherType NOT_CONTAINS
        Not contains.
      • NOT_STARTS_WITH

        public static final MatcherType NOT_STARTS_WITH
        Not starts with.
      • NOT_ENDS_WITH

        public static final MatcherType NOT_ENDS_WITH
        Not ends with.
    • Method Detail

      • values

        public static MatcherType[] 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 (MatcherType c : MatcherType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static MatcherType valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getLabel

        public java.lang.String getLabel()
        Get the label of this matcher type
        Returns:
        label
      • getCssRepresentation

        public java.lang.String getCssRepresentation()
        Return the css representation of the matcher
        Returns:
        CSS representation