Package org.hibernate.validator.cfg
Class AnnotationDef<C extends AnnotationDef<C,A>,A extends Annotation>
java.lang.Object
org.hibernate.validator.cfg.AnnotationDef<C,A>
- Type Parameters:
C
- The type of a concrete sub type. Following to the "self referencing generic type" pattern each sub type has to be parametrized with itself.A
- The constraint annotation type represented by a concrete sub type.
- Direct Known Subclasses:
ConstraintDef
public abstract class AnnotationDef<C extends AnnotationDef<C,A>,A extends Annotation>
extends Object
Base class for all annotation definition types.
Note that any protected member in this type and its subtypes are not part of the public API and are only meant for internal use.
- Author:
- Hardy Ferentschik, Gunnar Morling, Marko Bekhta, Guillaume Smet
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AnnotationDef
(Class<A> annotationType) protected
AnnotationDef
(AnnotationDef<?, A> original) -
Method Summary
Modifier and TypeMethodDescriptionprotected C
addAnnotationAsParameter
(String key, AnnotationDef<?, ?> value) protected C
addParameter
(String key, Object value) toString()