de.nava.informa.impl.basic
Class ItemSource

java.lang.Object
  extended by de.nava.informa.impl.basic.ItemSource
All Implemented Interfaces:
ItemSourceIF, WithNameMIF, Serializable

public class ItemSource
extends Object
implements ItemSourceIF

In-Memory implementation of the ItemSourceIF interface.

Author:
Michael Harhen
See Also:
Serialized Form

Constructor Summary
ItemSource(ItemIF item)
          Default constructor.
ItemSource(ItemIF item, String name, String location, Date timestamp)
           
 
Method Summary
 ItemIF getItem()
           
 String getLocation()
           
 String getName()
           
 Date getTimestamp()
           
 void setItem(ItemIF item)
           
 void setLocation(String location)
           
 void setName(String name)
           
 void setTimestamp(Date timestamp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItemSource

public ItemSource(ItemIF item)
Default constructor.

Parameters:
item - the item

ItemSource

public ItemSource(ItemIF item,
                  String name,
                  String location,
                  Date timestamp)
Method Detail

getItem

public ItemIF getItem()

setItem

public void setItem(ItemIF item)

getName

public String getName()
Specified by:
getName in interface WithNameMIF
Returns:
the name of the object

setName

public void setName(String name)
Specified by:
setName in interface WithNameMIF
Parameters:
name - the name of the object to be set

getLocation

public String getLocation()
Specified by:
getLocation in interface ItemSourceIF

setLocation

public void setLocation(String location)
Specified by:
setLocation in interface ItemSourceIF

getTimestamp

public Date getTimestamp()
Specified by:
getTimestamp in interface ItemSourceIF
Returns:
The time was published by the original source

setTimestamp

public void setTimestamp(Date timestamp)
Specified by:
setTimestamp in interface ItemSourceIF


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