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
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAnnotationDescriptor(A annotation) AnnotationDescriptor(AnnotationDescriptor<A> descriptor) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetAttribute(String attributeName) <T> TgetAttribute(String attributeName, Class<T> attributeType) <T> TgetMandatoryAttribute(String attributeName, Class<T> attributeType) getType()inthashCode()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
-