@Documented @Retention(value=RUNTIME) @Target(value=METHOD) @Repeatable(value=OverridesAttribute.List.class) public @interface OverridesAttribute
| Modifier and Type | Required Element and Description |
|---|---|
Class<? extends Annotation> |
constraint |
| Modifier and Type | Optional Element and Description |
|---|---|
int |
constraintIndex
The index of the targeted constraint declaration when using
multiple constraints of the same type.
|
String |
name
Name of the Constraint attribute overridden.
|
public abstract Class<? extends Annotation> constraint
public abstract String name
@OverridesAttribute.public abstract int constraintIndex
The index represents the index of the constraint in the
value() array.
By default, no index is defined and the single constraint declaration is targeted.
Copyright © 2007-2017 Red Hat Inc. All Rights Reserved. Released under the Apache Software License 2.0.