Package com.arangodb.model
Enum CollectionSchema.Level
- All Implemented Interfaces:
Serializable
,Comparable<CollectionSchema.Level>
- Enclosing class:
- CollectionSchema
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionNew and modified documents must pass validation, except for modified documents where the OLD value did not pass validation already.Only newly inserted documents are validated.The rule is inactive and validation thus turned off.All new and modified document must strictly pass validation. -
Method Summary
Modifier and TypeMethodDescriptiongetValue()
static CollectionSchema.Level
static CollectionSchema.Level
Returns the enum constant of this type with the specified name.static CollectionSchema.Level[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NONE
The rule is inactive and validation thus turned off. -
NEW
Only newly inserted documents are validated. -
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
All new and modified document must strictly pass validation. No exceptions are made (default).
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
of
-
getValue
-