|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.validator.internal.metadata.aggregated.rule.MethodConfigurationRule
public abstract class MethodConfigurationRule
A rule applying to the overriding methods of an inheritance hierarchy.
| Field Summary | |
|---|---|
protected static Log |
log
|
| Constructor Summary | |
|---|---|
MethodConfigurationRule()
|
|
| Method Summary | |
|---|---|
abstract void |
apply(ConstrainedExecutable method,
ConstrainedExecutable otherMethod)
Applies this rule. |
protected boolean |
isDefinedOnParallelType(ConstrainedExecutable executable,
ConstrainedExecutable otherExecutable)
Whether otherExecutable is defined on a parallel of the declaring
type of executable or not. |
protected boolean |
isDefinedOnSubType(ConstrainedExecutable executable,
ConstrainedExecutable otherExecutable)
Whether otherExecutable is defined on a subtype of the declaring
type of executable or not. |
protected boolean |
isStrictSubType(Class<?> clazz,
Class<?> otherClazz)
Whether otherClazz is a strict subtype of clazz or not. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final Log log
| Constructor Detail |
|---|
public MethodConfigurationRule()
| Method Detail |
|---|
public abstract void apply(ConstrainedExecutable method,
ConstrainedExecutable otherMethod)
ExecutableMetaData.Builder.
method - The first method to check.otherMethod - The other method to check.
ConstraintDeclarationException - If this rule is violated by the two given methods.
protected boolean isStrictSubType(Class<?> clazz,
Class<?> otherClazz)
otherClazz is a strict subtype of clazz or not.
protected boolean isDefinedOnSubType(ConstrainedExecutable executable,
ConstrainedExecutable otherExecutable)
otherExecutable is defined on a subtype of the declaring
type of executable or not.
protected boolean isDefinedOnParallelType(ConstrainedExecutable executable,
ConstrainedExecutable otherExecutable)
otherExecutable is defined on a parallel of the declaring
type of executable or not.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||