org.datanucleus.metadata.annotations
Class AnnotationObject

java.lang.Object
  extended by org.datanucleus.metadata.annotations.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".


Constructor Summary
AnnotationObject(java.lang.String name, java.util.HashMap<java.lang.String,java.lang.Object> map)
          Constructor.
 
Method Summary
 java.lang.String getName()
          Accessor for the annotation class name
 java.util.HashMap<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
 

Constructor Detail

AnnotationObject

public AnnotationObject(java.lang.String name,
                        java.util.HashMap<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.HashMap<java.lang.String,java.lang.Object> getNameValueMap()
Accessor for the annotation properties map

Returns:
Annotation properties map


Copyright © 2011. All Rights Reserved.