JBoss MetaData Repository 2.2.0.SP1

org.jboss.metadata.spi.retrieval.cummulative
Class CummulativeAnnotationsItem

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

public class CummulativeAnnotationsItem
extends SimpleAnnotationsItem

CummulativeAnnotationsItem.

Version:
$Revision: 97603 $
Author:
Adrian Brock

Field Summary
 
Fields inherited from class org.jboss.metadata.spi.retrieval.simple.SimpleAnnotationsItem
NO_ANNOTATIONS
 
Fields inherited from interface org.jboss.metadata.spi.retrieval.AnnotationsItem
NO_ANNOTATION_ITEMS
 
Constructor Summary
CummulativeAnnotationsItem(MetaDataContext context, boolean includeParent)
          Create a new CummulativeAnnotationsItem.
 
Method Summary
protected  void checkValid()
          Check whether we are valid
 AnnotationItem<? extends Annotation>[] getAnnotations()
          Get the annotations
 Annotation[] getValue()
          Get the value
protected  void init(long validTime)
          Initialise
 boolean isCachable()
          Whether the item is cachable
 boolean isValid()
          Whether the value is valid
 
Methods inherited from class org.jboss.metadata.spi.retrieval.simple.SimpleAnnotationsItem
setAnnotationItems
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CummulativeAnnotationsItem

public CummulativeAnnotationsItem(MetaDataContext context,
                                  boolean includeParent)
Create a new CummulativeAnnotationsItem.

Parameters:
context - the context
includeParent - whether to include the parent
Method Detail

getValue

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

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

getAnnotations

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

Specified by:
getAnnotations in interface AnnotationsItem
Overrides:
getAnnotations in class SimpleAnnotationsItem
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 SimpleItem<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 SimpleItem<Annotation[]>
Returns:
true when valid

checkValid

protected void checkValid()
Check whether we are valid


init

protected void init(long validTime)
Initialise

Parameters:
validTime - the valid time

JBoss MetaData Repository 2.2.0.SP1

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