org.jboss.metadata.spi.retrieval.basic
Class BasicAnnotationsItem

java.lang.Object
  extended by org.jboss.metadata.spi.retrieval.basic.BasicItem<Annotation[]>
      extended by org.jboss.metadata.spi.retrieval.basic.BasicAnnotationsItem
All Implemented Interfaces:
AnnotationsItem, Item<Annotation[]>

public class BasicAnnotationsItem
extends BasicItem<Annotation[]>
implements AnnotationsItem

BasicAnnotationsItem.

Version:
$Revision: 69888 $
Author:
Adrian Brock

Field Summary
 
Fields inherited from interface org.jboss.metadata.spi.retrieval.AnnotationsItem
NO_ANNOTATION_ITEMS
 
Constructor Summary
BasicAnnotationsItem(MetaDataLoader loader, AnnotationItem<? extends Annotation>[] annotationItems)
          Create a new BasicAnnotationsItem.
 
Method Summary
 AnnotationItem<? extends Annotation>[] getAnnotations()
          Get the annotations
 Annotation[] getValue()
          Get the value
 boolean isCachable()
          Whether the item is cachable
 boolean isValid()
          Whether the value is valid
 
Methods inherited from class org.jboss.metadata.spi.retrieval.basic.BasicItem
invalidate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicAnnotationsItem

public BasicAnnotationsItem(MetaDataLoader loader,
                            AnnotationItem<? extends Annotation>[] annotationItems)
Create a new BasicAnnotationsItem.

Parameters:
loader - the loader
annotationItems - the annotation items
Method Detail

getValue

public Annotation[] getValue()
Description copied from interface: Item
Get the value

Specified by:
getValue in interface Item<Annotation[]>
Returns:
the value

getAnnotations

public AnnotationItem<? extends Annotation>[] getAnnotations()
Description copied from interface: AnnotationsItem
Get the annotations

Specified by:
getAnnotations in interface AnnotationsItem
Returns:
the annotations

isCachable

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

Specified by:
isCachable in interface Item<Annotation[]>
Overrides:
isCachable in class BasicItem<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<Annotation[]>
Overrides:
isValid in class BasicItem<Annotation[]>
Returns:
true when valid


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