Package com.arangodb.model
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 Summary
Enum Constants Enum Constant Description MODERATENew and modified documents must pass validation, except for modified documents where the OLD value did not pass validation already.NEWOnly newly inserted documents are validated.NONEThe rule is inactive and validation thus turned off.STRICTAll new and modified document must strictly pass validation.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetValue()static CollectionSchema.Levelof(String label)static CollectionSchema.LevelvalueOf(String name)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 Detail
-
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 Detail
-
values
public static CollectionSchema.Level[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CollectionSchema.Level c : CollectionSchema.Level.values()) System.out.println(c);
- 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 nameNullPointerException- if the argument is null
-
of
public static CollectionSchema.Level of(String label)
-
getValue
public String getValue()
-
-