public abstract class MethodConfigurationRule extends Object
| Constructor and Description |
|---|
MethodConfigurationRule() |
| Modifier and Type | Method and Description |
|---|---|
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. |
protected static final Log log
public abstract void apply(ConstrainedExecutable method, ConstrainedExecutable otherMethod)
ExecutableMetaData.Builder.method - The first method to check.otherMethod - The other method to check.javax.validation.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.Copyright © 2009-2016 Oracle Corporation. All Rights Reserved.