Enum CollectionSchema.Level

java.lang.Object
java.lang.Enum<CollectionSchema.Level>
com.arangodb.model.CollectionSchema.Level
All Implemented Interfaces:
Serializable, Comparable<CollectionSchema.Level>
Enclosing class:
CollectionSchema

public static enum CollectionSchema.Level extends Enum<CollectionSchema.Level>
  • Enum Constant Details

    • NONE

      public static final CollectionSchema.Level NONE
      The rule is inactive and validation thus turned off.
    • NEW

      public static final CollectionSchema.Level NEW
      Only newly inserted documents are validated.
    • MODERATE

      public static final CollectionSchema.Level MODERATE
      New and modified documents must pass validation, except for modified documents where the OLD value did not pass validation already. This level is useful if you have documents which do not match your target structure, but you want to stop the insertion of more invalid documents and prohibit that valid documents are changed to invalid documents.
    • STRICT

      public static final CollectionSchema.Level STRICT
      All new and modified document must strictly pass validation. No exceptions are made (default).
  • Method Details

    • values

      public static CollectionSchema.Level[] 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 CollectionSchema.Level 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
    • of

      public static CollectionSchema.Level of(String label)
    • getValue

      public String getValue()