Class MethodValidationConfiguration
- java.lang.Object
-
- org.hibernate.validator.internal.engine.MethodValidationConfiguration
-
public class MethodValidationConfiguration extends Object
These properties modify the behavior of theValidatorwith 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 Modifier and Type Class Description static classMethodValidationConfiguration.Builder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Set<MethodConfigurationRule>getConfiguredRuleSet()Return an unmodifiable Set of MethodConfigurationRule that are to be enforced based on the configuration.inthashCode()booleanisAllowMultipleCascadedValidationOnReturnValues()booleanisAllowOverridingMethodAlterParameterConstraint()booleanisAllowParallelMethodsDefineParameterConstraints()
-
-
-
Method Detail
-
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
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
-
-