Top Description Fields Constructors Methods
org.hibernate.annotations.common.annotationfactory

public Class AnnotationDescriptor

extends Object
Class Inheritance
Imports
java.lang.annotation.Annotation, java.util.HashMap, .Map

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).
Authors
Paolo Perrotta, Davide Marchignoli

Field Summary

Modifier and TypeField and Description
private final Map<String, Object>
private final Class<? extends Annotation>

Constructor Summary

AccessConstructor and Description
public
AnnotationDescriptor(Class<? extends Annotation> annotationType)

Method Summary

Modifier and TypeMethod and Description
public boolean
containsElement(String elementName)

public int
public void
setValue(String elementName, Object value)

public Class<? extends Annotation>
type()

public Object
valueOf(String elementName)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

elementsback to summary
private final Map<String, Object> elements
typeback to summary
private final Class<? extends Annotation> type

Constructor Detail

AnnotationDescriptorback to summary
public AnnotationDescriptor(Class<? extends Annotation> annotationType)

Method Detail

containsElementback to summary
public boolean containsElement(String elementName)
numberOfElementsback to summary
public int numberOfElements()
setValueback to summary
public void setValue(String elementName, Object value)
typeback to summary
public Class<? extends Annotation> type()
valueOfback to summary
public Object valueOf(String elementName)