Class ValidationFeature<V>

java.lang.Object
dev.metaschema.core.configuration.AbstractConfigurationFeature<V>
dev.metaschema.core.model.constraint.ValidationFeature<V>
Type Parameters:
V - the Java type of the configuration value
All Implemented Interfaces:
IConfigurationFeature<V>

public final class ValidationFeature<V> extends AbstractConfigurationFeature<V>
A set of configurable features that adjust Metaschema constraint validation behavior.
  • Field Details

    • VALIDATE_GENERATE_PASS_FINDINGS

      @NonNull public static final ValidationFeature<Boolean> VALIDATE_GENERATE_PASS_FINDINGS
      If enabled, generate findings for passing constraints.
    • THROW_EXCEPTION_ON_ERROR

      @NonNull public static final ValidationFeature<Boolean> THROW_EXCEPTION_ON_ERROR
      If enabled, throw an exception when an error occurs.
    • PARALLEL_THREADS

      @NonNull public static final ValidationFeature<Integer> PARALLEL_THREADS
      The number of threads to use for parallel constraint validation.

      A value of 1 (the default) means sequential validation. Values greater than 1 enable experimental parallel validation with the specified number of threads.

      Warning: Parallel validation is an experimental feature. Results should be verified against sequential validation.