Class MethodValidationConfiguration
java.lang.Object
org.hibernate.validator.internal.engine.MethodValidationConfiguration
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
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn an unmodifiable Set of MethodConfigurationRule that are to be enforced based on the configuration.inthashCode()booleanbooleanboolean
-
Method Details
-
isAllowOverridingMethodAlterParameterConstraint
public boolean isAllowOverridingMethodAlterParameterConstraint()- Returns:
trueif more than one return value within a class hierarchy can be marked for cascaded validation,falseotherwise.
-
isAllowMultipleCascadedValidationOnReturnValues
public boolean isAllowMultipleCascadedValidationOnReturnValues()- Returns:
trueif more than one return value within a class hierarchy can be marked for cascaded validation,falseotherwise.
-
isAllowParallelMethodsDefineParameterConstraints
public boolean isAllowParallelMethodsDefineParameterConstraints()- Returns:
trueif constraints on methods in parallel class hierarchy are allowed,falseotherwise.
-
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() -
equals
-