de.nava.informa.impl.basic
Class ItemMetadata

java.lang.Object
  extended by de.nava.informa.impl.basic.ItemMetadata
All Implemented Interfaces:
ItemMetadataIF, Serializable

public class ItemMetadata
extends Object
implements ItemMetadataIF

In-Memory implementation of the ItemMetadataIF interface.

Author:
Niko Schmuck (niko@nava.de)
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface de.nava.informa.core.ItemMetadataIF
DEFAULT_SCORE
 
Constructor Summary
ItemMetadata(ItemIF item)
          Default constructor which sets this metadata to unread and to the default score (see ItemMetadataIF.DEFAULT_SCORE).
 
Method Summary
 ItemIF getItem()
           
 int getScore()
           
 boolean isMarkedRead()
           
 void setItem(ItemIF item)
           
 void setMarkedRead(boolean markedRead)
           
 void setScore(int score)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItemMetadata

public ItemMetadata(ItemIF item)
Default constructor which sets this metadata to unread and to the default score (see ItemMetadataIF.DEFAULT_SCORE).

Parameters:
item - the item.
Method Detail

getItem

public ItemIF getItem()
Specified by:
getItem in interface ItemMetadataIF

setItem

public void setItem(ItemIF item)
Specified by:
setItem in interface ItemMetadataIF

isMarkedRead

public boolean isMarkedRead()
Specified by:
isMarkedRead in interface ItemMetadataIF

setMarkedRead

public void setMarkedRead(boolean markedRead)
Specified by:
setMarkedRead in interface ItemMetadataIF

getScore

public int getScore()
Specified by:
getScore in interface ItemMetadataIF

setScore

public void setScore(int score)
Specified by:
setScore in interface ItemMetadataIF


Copyright © 2002-2007 Niko Schmuck. All Rights Reserved.