Class AnnotationObject


  • public class AnnotationObject
    extends java.lang.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 Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.lang.String name
      Name of the annotation object (e.g javax.persistence.Entity)
      (package private) java.util.Map<java.lang.String,​java.lang.Object> nameValueMap
      Map of properties for this annotation
    • Constructor Summary

      Constructors 
      Constructor Description
      AnnotationObject​(java.lang.String name, java.util.Map<java.lang.String,​java.lang.Object> map)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getName()
      Accessor for the annotation class name
      java.util.Map<java.lang.String,​java.lang.Object> getNameValueMap()
      Accessor for the annotation properties map
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • name

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

        java.util.Map<java.lang.String,​java.lang.Object> nameValueMap
        Map of properties for this annotation
    • Constructor Detail

      • AnnotationObject

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

      • getName

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

        public java.util.Map<java.lang.String,​java.lang.Object> getNameValueMap()
        Accessor for the annotation properties map
        Returns:
        Annotation properties map