Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.hibernate.annotationfactory
Class AnnotationDescriptor

    java.lang.Object
      org.hibernate.annotationfactory.AnnotationDescriptor

    public class AnnotationDescriptor

extends Object

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

Constructor Summary
`AnnotationDescriptor(Class<? extends java.lang.annotation.Annotation> annotationType)`

Method Summary
`boolean` | `containsElement(String elementName)`
`int` | `numberOfElements()`
`void` | `setValue(String elementName, Object value)`
`Class<? extends java.lang.annotation.Annotation>` | `type()`
`Object` | `valueOf(String elementName)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### AnnotationDescriptor

    public AnnotationDescriptor(Class<? extends java.lang.annotation.Annotation> annotationType)

Method Detail

### setValue

    public void setValue(String elementName,
                         Object value)

### valueOf

    public Object valueOf(String elementName)

### containsElement

    public boolean containsElement(String elementName)

### numberOfElements

    public int numberOfElements()

### type

    public Class<? extends java.lang.annotation.Annotation> type()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD