Enum Filter.MatchMode

java.lang.Object
java.lang.Enum<Filter.MatchMode>
sailpoint.object.Filter.MatchMode
All Implemented Interfaces:
Serializable, Comparable<Filter.MatchMode>
Enclosing class:
Filter

public static enum Filter.MatchMode extends Enum<Filter.MatchMode>
An enumeration that describes how to match strings in a 'like' filter.
  • Enum Constant Details

    • ANYWHERE

      public static final Filter.MatchMode ANYWHERE
      Match anywhere within a String - equivalent to contains().
    • START

      public static final Filter.MatchMode START
      Match the start of a String - equivalent to startsWith().
    • END

      public static final Filter.MatchMode END
      Match the end a String - equivalent to endsWith().
    • EXACT

      public static final Filter.MatchMode EXACT
      Match an exact String - equivalent to equals().
  • Method Details

    • values

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

      public static Filter.MatchMode 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 name
      NullPointerException - if the argument is null
    • toMatchString

      public abstract String toMatchString(String value, String wildcard)
      Convert the given value into a match string using the given wildcard.
      Parameters:
      value - The value for which to retrieve the match string.
      wildcard - The wildcard to use.
      Returns:
      A match string of the given value using the given wildcard.