Package cz.o2.proxima.core.repository
Enum Repository.Validate
- java.lang.Object
-
- java.lang.Enum<Repository.Validate>
-
- cz.o2.proxima.core.repository.Repository.Validate
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Repository.Validate>
- Enclosing class:
- Repository
public static enum Repository.Validate extends java.lang.Enum<Repository.Validate>
Various validation flags.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCESSESValidate that families have correctly configured access patterns.ALLTurn on all validations.FAMILIESValidate that attributes have associated families.NONEDo not perform any validations.SERIALIZERSValidate scheme serializers.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intdefaultTesting()A default flag that is used when constructingRepositoryusingRepository.ofTest(Config, Validate...)static Repository.ValidatevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Repository.Validate[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final Repository.Validate NONE
Do not perform any validations.
-
FAMILIES
public static final Repository.Validate FAMILIES
Validate that attributes have associated families.
-
ACCESSES
public static final Repository.Validate ACCESSES
Validate that families have correctly configured access patterns.
-
SERIALIZERS
public static final Repository.Validate SERIALIZERS
Validate scheme serializers.
-
ALL
public static final Repository.Validate ALL
Turn on all validations.
-
-
Method Detail
-
values
public static Repository.Validate[] 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 (Repository.Validate c : Repository.Validate.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Repository.Validate valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
defaultTesting
public static int defaultTesting()
A default flag that is used when constructingRepositoryusingRepository.ofTest(Config, Validate...)- Returns:
- the default flag to use for testing repositories
-
-