Class AnnotationDescriptor<A extends Annotation>
java.lang.Object
org.hibernate.validator.internal.util.annotation.AnnotationDescriptor<A>
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ConstraintAnnotationDescriptor
Encapsulates the data you need to create an annotation. In
particular, it stores the type of an
Annotation
instance
and the values of its elements.
The "elements" we're talking about are the annotation attributes,
not its targets (the term "element" is used ambiguously
in Java's annotations documentation).- Author:
- Paolo Perrotta, Davide Marchignoli, Hardy Ferentschik, Gunnar Morling, Guillaume Smet
- See Also:
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionAnnotationDescriptor
(A annotation) AnnotationDescriptor
(AnnotationDescriptor<A> descriptor) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getAttribute
(String attributeName) <T> T
getAttribute
(String attributeName, Class<T> attributeType) <T> T
getMandatoryAttribute
(String attributeName, Class<T> attributeType) getType()
int
hashCode()
Calculates the hash code of this annotation descriptor as described inAnnotation.hashCode()
.toString()
-
Constructor Details
-
AnnotationDescriptor
-
AnnotationDescriptor
-
-
Method Details
-
getType
-
getAttributes
-
getMandatoryAttribute
-
getAttribute
-
getAttribute
-
getAnnotation
-
equals
-
hashCode
public int hashCode()Calculates the hash code of this annotation descriptor as described inAnnotation.hashCode()
. -
toString
-