org.clapper.curn
Class PersistentFeedItemData

java.lang.Object
  extended by org.clapper.curn.PersistentFeedItemData

public class PersistentFeedItemData
extends java.lang.Object

A PersistentFeedItemData object contains data and metadata about a perticular item within a feed, in a form suitable for saving to and restoring from an external store. The data are organized to make persistence operations easier. At runtime, the data are reorganized; see the PersistentFeedData class for more inforamtion.

Version:
$Revision: 6547 $
See Also:
FeedCache, DataPersister, PersistentFeedData

Constructor Summary
PersistentFeedItemData(FeedCacheEntry feedCacheEntry)
          Creates a new instance of PersistentFeedData
 
Method Summary
 void addItemMetadata(java.util.Collection<PersistentMetadataGroup> metadata)
          Add a metadata group (i.e., all the metadata within a given namespace) to this object.
 void addItemMetadataGroup(PersistentMetadataGroup metadataGroup)
          Add a metadata group (i.e., all the metadata within a given namespace) to this object.
 FeedCacheEntry getFeedCacheEntry()
          Get the FeedCacheEntry for the item
 java.util.Collection<PersistentMetadataGroup> getItemMetadata()
          Get the extra metadata associated with the feed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistentFeedItemData

public PersistentFeedItemData(FeedCacheEntry feedCacheEntry)
Creates a new instance of PersistentFeedData

Parameters:
feedCacheEntry - the FeedCacheEntry for the item
Method Detail

getFeedCacheEntry

public FeedCacheEntry getFeedCacheEntry()
Get the FeedCacheEntry for the item

Returns:
the FeedCacheEntry

addItemMetadataGroup

public void addItemMetadataGroup(PersistentMetadataGroup metadataGroup)
Add a metadata group (i.e., all the metadata within a given namespace) to this object.

Parameters:
metadataGroup - the group of metadata

addItemMetadata

public void addItemMetadata(java.util.Collection<PersistentMetadataGroup> metadata)
Add a metadata group (i.e., all the metadata within a given namespace) to this object.

Parameters:
metadata - the metadata

getItemMetadata

public java.util.Collection<PersistentMetadataGroup> getItemMetadata()
Get the extra metadata associated with the feed. The returned data is aggregated into individual namespaces.

Returns:
a Collection of PersistentMetadataGroup objects, each one containing the data for one namespace.


Copyright © 2004-2006 Brian M. Clapper. All Rights Reserved.