Enum Class GraphParserMode

java.lang.Object
java.lang.Enum<GraphParserMode>
org.hibernate.GraphParserMode
All Implemented Interfaces:
Serializable, Comparable<GraphParserMode>, Constable

public enum GraphParserMode extends Enum<GraphParserMode>
Enumeration of available graph parser syntax modes.
  • Enum Constant Details

    • LEGACY

      public static final GraphParserMode LEGACY
      Legacy syntax: attribute(SubType: attributes) This is the legacy syntax.
    • MODERN

      public static final GraphParserMode MODERN
      Modern syntax: attribute:SubType(attributes) This is the preferred new syntax.
  • Method Details

    • values

      public static GraphParserMode[] 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 GraphParserMode 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
    • getConfigValue

      public String getConfigValue()
    • interpret

      public static GraphParserMode interpret(Object graphParserMode)
      Interpret the configured valueHandlingMode value. Valid values are either a GraphParserMode object or its String representation. For string values, the matching is case insensitive, so you can use either MODERN or modern.
      Parameters:
      graphParserMode - configured GraphParserMode representation
      Returns:
      associated GraphParserMode object