Top Description Fields Constructors Methods
org.hibernate.validator.internal.metadata.aggregated.rule

public Class OverridingMethodMustNotAlterParameterConstraints

extends MethodConfigurationRule
Class Inheritance
Imports
org.hibernate.validator.internal.metadata.raw.ConstrainedExecutable

Rule that ensures that overriding methods don't add to or alter the constraints defined on the overridden method.
Author
Gunnar Morling

Field Summary

Inherited from org.hibernate.validator.internal.metadata.aggregated.rule.MethodConfigurationRule:
LOG

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
apply(ConstrainedExecutable
The first method to check.
method
,
ConstrainedExecutable
The other method to check.
otherMethod
)

Implements abstract org.hibernate.validator.internal.metadata.aggregated.rule.MethodConfigurationRule.apply.

Applies this rule.
Inherited from org.hibernate.validator.internal.metadata.aggregated.rule.MethodConfigurationRule:
isDefinedOnParallelTypeisDefinedOnSubTypeisStrictSubType

Constructor Detail

OverridingMethodMustNotAlterParameterConstraintsback to summary
public OverridingMethodMustNotAlterParameterConstraints()

Method Detail

applyback to summary
public void apply(ConstrainedExecutable method, ConstrainedExecutable otherMethod)

Implements abstract org.hibernate.validator.internal.metadata.aggregated.rule.MethodConfigurationRule.apply.

Doc from org.hibernate.validator.internal.metadata.aggregated.rule.MethodConfigurationRule.apply.

Applies this rule. Invoked for each pair of methods collected by a given executable meta data org.hibernate.validator.internal.metadata.aggregated.ExecutableMetaData.Builder.

Parameters
method:ConstrainedExecutable

The first method to check.

otherMethod:ConstrainedExecutable

The other method to check.

Annotations
@Override