Class AnnotationDescriptor
- java.lang.Object
-
- org.hibernate.annotations.common.annotationfactory.AnnotationDescriptor
-
public final class AnnotationDescriptor extends Object
Encapsulates the data you need to create an annotation. In particular, it stores the type of anAnnotationinstance 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).
-
-
Constructor Summary
Constructors Constructor Description AnnotationDescriptor(Class<? extends Annotation> annotationType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsElement(String elementName)intnumberOfElements()voidsetValue(String elementName, Object value)Class<? extends Annotation>type()ObjectvalueOf(String elementName)
-
-
-
Constructor Detail
-
AnnotationDescriptor
public AnnotationDescriptor(Class<? extends Annotation> annotationType)
-
-