org.jboss.metadata.spi.retrieval
Interface Item<T>

Type Parameters:
T - the item type
All Known Subinterfaces:
AnnotationItem<T>, AnnotationsItem, MetaDataItem<T>, MetaDatasItem
All Known Implementing Classes:
AnnotationsToMetaDatasBridge, AnnotationToMetaDataBridge, BasicAnnotationItem, BasicAnnotationsItem, BasicItem, BasicMetaDataItem, BasicMetaDatasItem, CummulativeAnnotationsItem, CummulativeMetaDatasItem, MetaDataToAnnotationBridge, SimpleAnnotationItem, SimpleAnnotationsItem, SimpleItem, SimpleMetaDataItem, SimpleMetaDatasItem

public interface Item<T>

Retrieval Item.

Version:
$Revision: 57133 $
Author:
Adrian Brock

Method Summary
 T getValue()
          Get the value
 boolean isCachable()
          Whether the item is cachable
 boolean isValid()
          Whether the value is valid
 

Method Detail

isCachable

boolean isCachable()
Whether the item is cachable

Returns:
true when cachable

isValid

boolean isValid()
Whether the value is valid

Returns:
true when valid

getValue

T getValue()
Get the value

Returns:
the value


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