Top Description Inners Methods
javax.validation

public @Interface OverridesAttribute

extends Annotation
Annotations
@Documented
@Retention:RUNTIME
@Target:METHOD
@Repeatable:List
Static Imports
java.lang.annotation.ElementType.METHOD, .RetentionPolicy.RUNTIME

Marks an attribute as overriding the attribute of a composing constraint. Both attributes must share the same type.
Author
Emmanuel Bernard

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static @interface
OverridesAttribute.List

Defines several OverridesAttribute annotations on the same element

Method Summary

Modifier and TypeMethod and Description
public Class<? extends Annotation>

Returns:

constraint type the attribute is overriding
constraint
()

public int

Returns:

constraint declaration index if multivalued annotation is used
constraintIndex
()

The index of the targeted constraint declaration when using multiple constraints of the same type.

public String

Returns:

name of constraint attribute overridden
name
()

Name of the Constraint attribute overridden.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

constraintback to summary
public Class<? extends Annotation> constraint()
Returns:Class<? extends Annotation>

constraint type the attribute is overriding

constraintIndexback to summary
public int constraintIndex()

The index of the targeted constraint declaration when using multiple constraints of the same type.

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.

Returns:int

constraint declaration index if multivalued annotation is used

nameback to summary
public String name()

Name of the Constraint attribute overridden. Defaults to the name of the attribute hosting @OverridesAttribute.

Returns:String

name of constraint attribute overridden

javax.validation back to summary

public @Interface OverridesAttribute.List

extends Annotation
Annotations
@Documented
@Target:METHOD
@Retention:RUNTIME

Defines several OverridesAttribute annotations on the same element
See Also
javax.validation.OverridesAttribute

Method Summary

Modifier and TypeMethod and Description
public OverridesAttribute[]
Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public OverridesAttribute[] value()