org.jboss.metadata.spi.retrieval.simple
Class SimpleAnnotationsItem

java.lang.Object
  extended by org.jboss.metadata.spi.retrieval.simple.SimpleItem<Annotation[]>
      extended by org.jboss.metadata.spi.retrieval.simple.SimpleAnnotationsItem
All Implemented Interfaces:
AnnotationsItem, Item<Annotation[]>
Direct Known Subclasses:
CummulativeAnnotationsItem

public class SimpleAnnotationsItem
extends SimpleItem<Annotation[]>
implements AnnotationsItem

SimpleAnnotationsItem.

Version:
$Revision: 69888 $
Author:
Adrian Brock

Field Summary
static SimpleAnnotationsItem NO_ANNOTATIONS
          No annotations
 
Fields inherited from interface org.jboss.metadata.spi.retrieval.AnnotationsItem
NO_ANNOTATION_ITEMS
 
Constructor Summary
protected SimpleAnnotationsItem()
          Create a new SimpleAnnotationsItem with no annotations
  SimpleAnnotationsItem(AnnotationItem<? extends Annotation>[] annotationItems)
          Create a new SimpleAnnotationsItem.
 
Method Summary
 AnnotationItem<? extends Annotation>[] getAnnotations()
          Get the annotations
 Annotation[] getValue()
          Get the value
protected  void setAnnotationItems(AnnotationItem<? extends Annotation>[] annotationItems)
          Set the annotation items
 
Methods inherited from class org.jboss.metadata.spi.retrieval.simple.SimpleItem
isCachable, isValid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.metadata.spi.retrieval.Item
isCachable, isValid
 

Field Detail

NO_ANNOTATIONS

public static final SimpleAnnotationsItem NO_ANNOTATIONS
No annotations

Constructor Detail

SimpleAnnotationsItem

protected SimpleAnnotationsItem()
Create a new SimpleAnnotationsItem with no annotations


SimpleAnnotationsItem

public SimpleAnnotationsItem(AnnotationItem<? extends Annotation>[] annotationItems)
Create a new SimpleAnnotationsItem.

Parameters:
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

setAnnotationItems

protected void setAnnotationItems(AnnotationItem<? extends Annotation>[] annotationItems)
Set the annotation items

Parameters:
annotationItems - the annotation items


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