public class MethodValidationConfiguration extends Object
Validator
with respect to the 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."
Modifier and Type | Class and Description |
---|---|
static class |
MethodValidationConfiguration.Builder |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Set<MethodConfigurationRule> |
getConfiguredRuleSet()
Return an unmodifiable Set of MethodConfigurationRule that are to be
enforced based on the configuration.
|
int |
hashCode() |
boolean |
isAllowMultipleCascadedValidationOnReturnValues() |
boolean |
isAllowOverridingMethodAlterParameterConstraint() |
boolean |
isAllowParallelMethodsDefineParameterConstraints() |
public boolean isAllowOverridingMethodAlterParameterConstraint()
true
if more than one return value within a class hierarchy can be marked for cascaded
validation, false
otherwise.public boolean isAllowMultipleCascadedValidationOnReturnValues()
true
if more than one return value within a class hierarchy can be marked for cascaded
validation, false
otherwise.public boolean isAllowParallelMethodsDefineParameterConstraints()
true
if constraints on methods in parallel class hierarchy are allowed, false
otherwise.public Set<MethodConfigurationRule> getConfiguredRuleSet()
Copyright © 2019 JBoss by Red Hat. All rights reserved.