Top Description Fields Constructors Methods
org.hibernate.validator.internal.engine.valueextraction

public Class AnnotatedObject

extends Object
implements TypeVariable<Class<?>>
Class Inheritance
All Implemented Interfaces
java.lang.reflect.TypeVariable, java.lang.reflect.AnnotatedElement, java.lang.reflect.Type
Imports
java.lang.annotation.Annotation, java.lang.reflect.AnnotatedType, .Type, .TypeVariable

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

Modifier and TypeField and Description
public static final AnnotatedObject

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public AnnotatedType[]
getAnnotatedBounds()

Implements java.lang.reflect.TypeVariable.getAnnotatedBounds.

Returns an array of AnnotatedType objects that represent the use of types to denote the upper bounds of the type parameter represented by this TypeVariable.
public <T extends Annotation> T
getAnnotation(Class<T>
the Class object corresponding to the annotation type
annotationClass
)

Implements java.lang.reflect.AnnotatedElement.getAnnotation.

Returns this element's annotation for the specified type if such an annotation is present, else null.
public Annotation[]
getAnnotations()

Implements java.lang.reflect.AnnotatedElement.getAnnotations.

Returns annotations that are present on this element.
public Type[]
getBounds()

Implements java.lang.reflect.TypeVariable.getBounds.

Returns an array of Type objects representing the upper bound(s) of this type variable.
public Annotation[]
getDeclaredAnnotations()

Implements java.lang.reflect.AnnotatedElement.getDeclaredAnnotations.

Returns annotations that are directly present on this element.
public Class<?>
getGenericDeclaration()

Implements java.lang.reflect.TypeVariable.getGenericDeclaration.

Returns the GenericDeclaration object representing the generic declaration declared for this type variable.
public String
getName()

Implements java.lang.reflect.TypeVariable.getName.

Returns the name of this type variable, as it occurs in the source code.
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

INSTANCEback to summary
public static final AnnotatedObject INSTANCE

Constructor Detail

AnnotatedObjectback to summary
private AnnotatedObject()

Method Detail

getAnnotatedBoundsback to summary
public AnnotatedType[] getAnnotatedBounds()

Implements java.lang.reflect.TypeVariable.getAnnotatedBounds.

Doc from java.lang.reflect.TypeVariable.getAnnotatedBounds.

Returns an array of AnnotatedType objects that represent the use of types to denote the upper bounds of the type parameter represented by this TypeVariable. The order of the objects in the array corresponds to the order of the bounds in the declaration of the type parameter. Note that if no upper bound is explicitly declared, the upper bound is unannotated Object.

Returns:AnnotatedType[]

an array of objects representing the upper bound(s) of the type variable

Annotations
@Override
getAnnotationback to summary
public <T extends Annotation> T getAnnotation(Class<T> annotationClass)

Implements java.lang.reflect.AnnotatedElement.getAnnotation.

Doc from java.lang.reflect.AnnotatedElement.getAnnotation.

Returns this element's annotation for the specified type if such an annotation is present, else null.

Parameters
<T>
the type of the annotation to query for and return if present
annotationClass:Class<T>

the Class object corresponding to the annotation type

Returns:T

this element's annotation for the specified annotation type if present on this element, else null

Annotations
@Override
getAnnotationsback to summary
public Annotation[] getAnnotations()

Implements java.lang.reflect.AnnotatedElement.getAnnotations.

Doc from java.lang.reflect.AnnotatedElement.getAnnotations.

Returns annotations that are present on this element. If there are no annotations present on this element, the return value is an array of length 0. The caller of this method is free to modify the returned array; it will have no effect on the arrays returned to other callers.

Returns:Annotation[]

annotations present on this element

Annotations
@Override
getBoundsback to summary
public Type[] getBounds()

Implements java.lang.reflect.TypeVariable.getBounds.

Doc from java.lang.reflect.TypeVariable.getBounds.

Returns an array of Type objects representing the upper bound(s) of this type variable. If no upper bound is explicitly declared, the upper bound is Object.

For each upper bound B:

  • if B is a parameterized type or a type variable, it is created, (see ParameterizedType for the details of the creation process for parameterized types).
  • Otherwise, B is resolved.
Returns:Type[]

an array of Types representing the upper bound(s) of this type variable

Annotations
@Override
getDeclaredAnnotationsback to summary
public Annotation[] getDeclaredAnnotations()

Implements java.lang.reflect.AnnotatedElement.getDeclaredAnnotations.

Doc from java.lang.reflect.AnnotatedElement.getDeclaredAnnotations.

Returns annotations that are directly present on this element. This method ignores inherited annotations. If there are no annotations directly present on this element, the return value is an array of length 0. The caller of this method is free to modify the returned array; it will have no effect on the arrays returned to other callers.

Returns:Annotation[]

annotations directly present on this element

Annotations
@Override
getGenericDeclarationback to summary
public Class<?> getGenericDeclaration()

Implements java.lang.reflect.TypeVariable.getGenericDeclaration.

Doc from java.lang.reflect.TypeVariable.getGenericDeclaration.

Returns the GenericDeclaration object representing the generic declaration declared for this type variable.

Returns:Class<?>

the generic declaration declared for this type variable.

Annotations
@Override
getNameback to summary
public String getName()

Implements java.lang.reflect.TypeVariable.getName.

Doc from java.lang.reflect.TypeVariable.getName.

Returns the name of this type variable, as it occurs in the source code.

Returns:String

the name of this type variable, as it appears in the source code

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override