org.progeeks.meta.annotate
Class AnnotationType

java.lang.Object
  extended by org.progeeks.meta.annotate.AnnotationType

public class AnnotationType
extends java.lang.Object

This defines a type of annotation that can be associated with a MetaClass or property. An annotation type provides a class reference to the type of AnnotationMap that is used to lookup its values within the AnnotationManager. Users of AnnotationType almost never have to worry about these specific mechanics since they are hidden behind the MetaClass annotation methods. However, these are important issues to anyone creating a custom annotation type and associated map. AnnotationManager keeps a map of AnnotationMaps that it creates on-demand (unless pre-initialized) for an AnnotationType name. This makes the annotation map instances unique on the annotation type name and the class name basically. If an AnnotationMap instance doesn't already exist for a given type name then it is created using the type's defined AnnotationMap class.

Version:
$Revision: 1.1 $
Author:
Paul Speed

Constructor Summary
AnnotationType(java.lang.String name, java.lang.Class mapType)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.Class getAnnotationMapType()
           
 java.lang.String getName()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AnnotationType

public AnnotationType(java.lang.String name,
                      java.lang.Class mapType)
Method Detail

getName

public java.lang.String getName()

getAnnotationMapType

public java.lang.Class getAnnotationMapType()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2002-2003 Paul Speed. All Rights Reserved.