org.jboss.metadata.spi.retrieval.simple
Class SimpleAnnotationItem<T extends Annotation>

java.lang.Object
  extended by org.jboss.metadata.spi.retrieval.simple.SimpleItem<T>
      extended by org.jboss.metadata.spi.retrieval.simple.SimpleMetaDataItem<T>
          extended by org.jboss.metadata.spi.retrieval.simple.SimpleAnnotationItem<T>
Type Parameters:
T - the annotation type
All Implemented Interfaces:
AnnotationItem<T>, Item<T>, MetaDataItem<T>

public class SimpleAnnotationItem<T extends Annotation>
extends SimpleMetaDataItem<T>
implements AnnotationItem<T>

SimpleAnnotationItem.

Version:
$Revision: 69888 $
Author:
Adrian Brock

Constructor Summary
SimpleAnnotationItem(T annotation)
          Create a new SimpleAnnotationItem.
 
Method Summary
 boolean equals(Object object)
           
 T getAnnotation()
          Get the annotation
 
Methods inherited from class org.jboss.metadata.spi.retrieval.simple.SimpleMetaDataItem
getName, getValue, hashCode, toString
 
Methods inherited from class org.jboss.metadata.spi.retrieval.simple.SimpleItem
isCachable, isValid
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.metadata.spi.retrieval.MetaDataItem
getName
 
Methods inherited from interface org.jboss.metadata.spi.retrieval.Item
getValue, isCachable, isValid
 

Constructor Detail

SimpleAnnotationItem

public SimpleAnnotationItem(T annotation)
Create a new SimpleAnnotationItem.

Parameters:
annotation - the annotation
Method Detail

getAnnotation

public T getAnnotation()
Description copied from interface: AnnotationItem
Get the annotation

Specified by:
getAnnotation in interface AnnotationItem<T extends Annotation>
Returns:
the annotation

equals

public boolean equals(Object object)
Overrides:
equals in class SimpleMetaDataItem<T extends Annotation>


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.