Enum Class StringSearchMode

java.lang.Object
java.lang.Enum<StringSearchMode>
org.neo4j.graphdb.StringSearchMode
All Implemented Interfaces:
Serializable, Comparable<StringSearchMode>, Constable

public enum StringSearchMode extends Enum<StringSearchMode>
The string search mode is used together with a value template to find nodes of interest. The search mode can be one of:
  • EXACT: The value has to match the template exactly.
  • PREFIX: The value must have a prefix matching the template.
  • SUFFIX: The value must have a suffix matching the template.
  • CONTAINS: The value must contain the template. Only exact matches are supported.
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    The value must contain the template exactly.
    The value has to match the template exactly.
    The value must have a prefix matching the template.
    The value must have a suffix matching the template.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.
  • Enum Constant Details

    • EXACT

      public static final StringSearchMode EXACT
      The value has to match the template exactly.
    • PREFIX

      public static final StringSearchMode PREFIX
      The value must have a prefix matching the template.
    • SUFFIX

      public static final StringSearchMode SUFFIX
      The value must have a suffix matching the template.
    • CONTAINS

      public static final StringSearchMode CONTAINS
      The value must contain the template exactly. Regular expressions are not supported.
  • Method Details

    • values

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