org.jboss.metadata.spi.retrieval.helper
Class MetaDataToAnnotationBridge<T extends Annotation>

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

public class MetaDataToAnnotationBridge<T extends Annotation>
extends Object
implements AnnotationItem<T>

MetaDataToAnnotationBridge.

Version:
$Revision: 69888 $
Author:
Adrian Brock

Constructor Summary
MetaDataToAnnotationBridge(MetaDataItem<?> metaData)
          Create a new MetaDataToAnnotationBridge.
 
Method Summary
 T getAnnotation()
          Get the annotation
 String getName()
          Get the name of the metadata
 T getValue()
          Get the value
 boolean isCachable()
          Whether the item is cachable
 boolean isValid()
          Whether the value is valid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetaDataToAnnotationBridge

public MetaDataToAnnotationBridge(MetaDataItem<?> metaData)
Create a new MetaDataToAnnotationBridge.

Parameters:
metaData - the meta data
Method Detail

isCachable

public boolean isCachable()
Description copied from interface: Item
Whether the item is cachable

Specified by:
isCachable in interface Item<T extends Annotation>
Returns:
true when cachable

isValid

public boolean isValid()
Description copied from interface: Item
Whether the value is valid

Specified by:
isValid in interface Item<T extends Annotation>
Returns:
true when valid

getValue

public T getValue()
Description copied from interface: Item
Get the value

Specified by:
getValue in interface Item<T extends Annotation>
Returns:
the value

getAnnotation

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

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

getName

public String getName()
Description copied from interface: MetaDataItem
Get the name of the metadata

Specified by:
getName in interface MetaDataItem<T extends Annotation>
Returns:
the name


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