Class MethodValidationConfiguration


  • public class MethodValidationConfiguration
    extends Object
    These properties modify the behavior of the Validator with respect to the Jakarta Bean Validation specification section 5.6.5. In particular:
     "Out of the box, a conforming Bean Validation provider must throw a
     ConstraintDeclarationException when discovering that any of these rules are violated.
     In addition providers may implement alternative, potentially more liberal, approaches
     for handling constrained methods in inheritance hierarchies. Possible means for activating
     such alternative behavior include provider-specific configuration properties or annotations.
     Note that client code relying on such alternative behavior is not portable between Bean
     Validation providers."
     
    Author:
    Chris Beckey <cbeckey@paypal.com>, Guillaume Smet
    • Method Detail

      • isAllowOverridingMethodAlterParameterConstraint

        public boolean isAllowOverridingMethodAlterParameterConstraint()
        Returns:
        true if more than one return value within a class hierarchy can be marked for cascaded validation, false otherwise.
      • isAllowMultipleCascadedValidationOnReturnValues

        public boolean isAllowMultipleCascadedValidationOnReturnValues()
        Returns:
        true if more than one return value within a class hierarchy can be marked for cascaded validation, false otherwise.
      • isAllowParallelMethodsDefineParameterConstraints

        public boolean isAllowParallelMethodsDefineParameterConstraints()
        Returns:
        true if constraints on methods in parallel class hierarchy are allowed, false otherwise.
      • getConfiguredRuleSet

        public Set<MethodConfigurationRule> getConfiguredRuleSet()
        Return an unmodifiable Set of MethodConfigurationRule that are to be enforced based on the configuration.
        Returns:
        a set of method configuration rules based on this configuration state
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object