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

java.lang.Object
  extended by org.jboss.metadata.spi.retrieval.simple.SimpleItem<Object[]>
      extended by org.jboss.metadata.spi.retrieval.simple.SimpleMetaDatasItem
          extended by org.jboss.metadata.spi.retrieval.cummulative.CummulativeMetaDatasItem
All Implemented Interfaces:
Item<Object[]>, MetaDatasItem

public class CummulativeMetaDatasItem
extends SimpleMetaDatasItem

CummulativeMetaDatasItem.

Version:
$Revision: 69888 $
Author:
Adrian Brock

Field Summary
 
Fields inherited from class org.jboss.metadata.spi.retrieval.simple.SimpleMetaDatasItem
NO_META_DATA
 
Fields inherited from interface org.jboss.metadata.spi.retrieval.MetaDatasItem
NO_META_DATA_ITEMS
 
Constructor Summary
CummulativeMetaDatasItem(MetaDataContext context, boolean includeParent)
          Create a new CummulativeMetaDatasItem.
 
Method Summary
protected  void checkValid()
          Check whether we are valid
 MetaDataItem<?>[] getMetaDatas()
          Get the meta datas
 Object[] 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.SimpleMetaDatasItem
setMetaDataItems
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CummulativeMetaDatasItem

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

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

getValue

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

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

getMetaDatas

public MetaDataItem<?>[] getMetaDatas()
Description copied from interface: MetaDatasItem
Get the meta datas

Specified by:
getMetaDatas in interface MetaDatasItem
Overrides:
getMetaDatas in class SimpleMetaDatasItem
Returns:
the meta datas

isCachable

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

Specified by:
isCachable in interface Item<Object[]>
Overrides:
isCachable in class SimpleItem<Object[]>
Returns:
true when cachable

isValid

public boolean isValid()
Description copied from interface: Item
Whether the value is valid

Specified by:
isValid in interface Item<Object[]>
Overrides:
isValid in class SimpleItem<Object[]>
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


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