Enum Class Path.Feature

java.lang.Object
java.lang.Enum<Path.Feature>
ch.tocco.nice2.persist.core.api.entity.Path.Feature
All Implemented Interfaces:
Serializable, Comparable<Path.Feature>, Constable
Enclosing class:
Path

public static enum Path.Feature extends Enum<Path.Feature>
  • Enum Constant Details

    • SELECTORS

      public static final Path.Feature SELECTORS
      If enabled then the parser allows selectors. Otherwise, if selectors are used, an exception is thrown.

      Example: xx[myselector].yy.zz

      See https://wiki.tocco.ch/wiki/index.php/Selectors

    • OPTIONALS

      public static final Path.Feature OPTIONALS
      If enabled then the parser allows optional relations. Otherwise, if the optional character '?' (question mark) occurs then an exception is thrown.

      Example: xx.yy?.zz

    • SUB_PATHS

      public static final Path.Feature SUB_PATHS
      If enabled then the parser allows sub paths. Otherwise, if parentheses ('(' or ')') occur, an exception is thrown. Example: xx(yy(abc),zz.foo) → is equivalent to the two paths: xx.yy.abc, xx.zz.foo
  • Method Details

    • values

      public static Path.Feature[] 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 Path.Feature 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