Class AnnotationObject

java.lang.Object
org.datanucleus.metadata.annotations.AnnotationObject

public class AnnotationObject extends Object
Wrapper for an annotation and its various properties etc. This could represent, for example, "javax.persistence.Entity" and have a map with one key "name".
  • Field Details

    • name

      String name
      Name of the annotation object (e.g javax.persistence.Entity)
    • nameValueMap

      Map<String,Object> nameValueMap
      Map of properties for this annotation
  • Constructor Details

    • AnnotationObject

      public AnnotationObject(String name, Map<String,Object> map)
      Constructor.
      Parameters:
      name - Class name of the annotation object
      map - Map of the annotation properties
  • Method Details

    • getName

      public String getName()
      Accessor for the annotation class name
      Returns:
      Annotation class name
    • getNameValueMap

      public Map<String,Object> getNameValueMap()
      Accessor for the annotation properties map
      Returns:
      Annotation properties map