org.jboss.metadata.spi.retrieval.helper
Class AnnotationToMetaDataBridge<T>

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

public class AnnotationToMetaDataBridge<T>
extends Object
implements MetaDataItem<T>

AnnotationToMetaDataBridge.

Version:
$Revision: 69888 $
Author:
Adrian Brock

Constructor Summary
AnnotationToMetaDataBridge(AnnotationItem<? extends Annotation> annotation)
          Create a new AnnotationToMetaDataBridge.
 
Method Summary
 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

AnnotationToMetaDataBridge

public AnnotationToMetaDataBridge(AnnotationItem<? extends Annotation> annotation)
Create a new AnnotationToMetaDataBridge.

Parameters:
annotation - the annotation
Method Detail

isCachable

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

Specified by:
isCachable in interface Item<T>
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>
Returns:
true when valid

getValue

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

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

getName

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

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


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