Class AnnotatedObject
- java.lang.Object
-
- org.hibernate.validator.internal.engine.valueextraction.AnnotatedObject
-
- All Implemented Interfaces:
AnnotatedElement,Type,TypeVariable<Class<?>>
public class AnnotatedObject extends Object implements TypeVariable<Class<?>>
A pseudo type variable used to express that the annotated element itself (e.g. a list) has been marked for cascaded validation.- Author:
- Gunnar Morling
-
-
Field Summary
Fields Modifier and Type Field Description static AnnotatedObjectINSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnnotatedType[]getAnnotatedBounds()<T extends Annotation>
TgetAnnotation(Class<T> annotationClass)Annotation[]getAnnotations()Type[]getBounds()Annotation[]getDeclaredAnnotations()Class<?>getGenericDeclaration()StringgetName()StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.reflect.AnnotatedElement
getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByType, isAnnotationPresent
-
Methods inherited from interface java.lang.reflect.Type
getTypeName
-
-
-
-
Field Detail
-
INSTANCE
public static final AnnotatedObject INSTANCE
-
-
Method Detail
-
getAnnotation
public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
- Specified by:
getAnnotationin interfaceAnnotatedElement
-
getAnnotations
public Annotation[] getAnnotations()
- Specified by:
getAnnotationsin interfaceAnnotatedElement
-
getDeclaredAnnotations
public Annotation[] getDeclaredAnnotations()
- Specified by:
getDeclaredAnnotationsin interfaceAnnotatedElement
-
getBounds
public Type[] getBounds()
- Specified by:
getBoundsin interfaceTypeVariable<Class<?>>
-
getGenericDeclaration
public Class<?> getGenericDeclaration()
- Specified by:
getGenericDeclarationin interfaceTypeVariable<Class<?>>
-
getName
public String getName()
- Specified by:
getNamein interfaceTypeVariable<Class<?>>
-
getAnnotatedBounds
public AnnotatedType[] getAnnotatedBounds()
- Specified by:
getAnnotatedBoundsin interfaceTypeVariable<Class<?>>
-
-