de.nava.informa.impl.basic
Class Feed

java.lang.Object
  extended by de.nava.informa.impl.basic.Feed
All Implemented Interfaces:
FeedIF, WithChannelMIF, WithIdMIF, WithLocationMIF, WithSiteMIF, WithTitleMIF, Serializable

public class Feed
extends Object
implements FeedIF

In-Memory implementation of the FeedIF interface.

Author:
Niko Schmuck
See Also:
Serialized Form

Constructor Summary
Feed()
          Default constructor.
Feed(ChannelIF channel)
          Convinence constrcutor - creates meta data for a preexisting feed.
Feed(String title)
           
 
Method Summary
 ChannelIF getChannel()
           
 String getContentType()
           
 String getCopyright()
           
 Date getDateFound()
           
 long getId()
           
 Date getLastUpdated()
           
 URL getLocation()
           
 URL getSite()
           
 String getText()
           
 String getTitle()
           
 void setChannel(ChannelIF channelIF)
           
 void setContentType(String string)
           
 void setCopyright(String string)
           
 void setDateFound(Date date)
           
 void setId(long id)
           
 void setLastUpdated(Date date)
           
 void setLocation(URL location)
           
 void setSite(URL site)
           
 void setText(String string)
           
 void setTitle(String string)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Feed

public Feed()
Default constructor.


Feed

public Feed(ChannelIF channel)
Convinence constrcutor - creates meta data for a preexisting feed.

Parameters:
channel -

Feed

public Feed(String title)
Method Detail

getId

public long getId()
Specified by:
getId in interface WithIdMIF
Returns:
identifier of the object.

setId

public void setId(long id)
Specified by:
setId in interface WithIdMIF
Parameters:
id - the identifier of the object to be set.

getContentType

public String getContentType()
Specified by:
getContentType in interface FeedIF

getCopyright

public String getCopyright()
Specified by:
getCopyright in interface WithSiteMIF
Returns:
copyright information, if it's presented on the site

getDateFound

public Date getDateFound()
Specified by:
getDateFound in interface FeedIF

getLastUpdated

public Date getLastUpdated()
Specified by:
getLastUpdated in interface FeedIF

getLocation

public URL getLocation()
Specified by:
getLocation in interface WithLocationMIF
Returns:
The URL where this channel can be retrieved from.

getSite

public URL getSite()
Specified by:
getSite in interface WithSiteMIF
Returns:
the link to the site where more informaion may be obtained

getText

public String getText()
Specified by:
getText in interface FeedIF

getTitle

public String getTitle()
Specified by:
getTitle in interface WithTitleMIF
Returns:
the title of the object

setContentType

public void setContentType(String string)
Specified by:
setContentType in interface FeedIF

setCopyright

public void setCopyright(String string)
Specified by:
setCopyright in interface WithSiteMIF
Parameters:
string - the copyright information to be set

setDateFound

public void setDateFound(Date date)
Specified by:
setDateFound in interface FeedIF

setLastUpdated

public void setLastUpdated(Date date)
Specified by:
setLastUpdated in interface FeedIF

setLocation

public void setLocation(URL location)
Specified by:
setLocation in interface WithLocationMIF
Parameters:
location - The URL where this channel can be retrieved from.

setSite

public void setSite(URL site)
Specified by:
setSite in interface WithSiteMIF
Parameters:
site - the link to the site to be set

setText

public void setText(String string)
Specified by:
setText in interface FeedIF

setTitle

public void setTitle(String string)
Specified by:
setTitle in interface WithTitleMIF
Parameters:
string - the title of the object to be set

getChannel

public ChannelIF getChannel()
Specified by:
getChannel in interface WithChannelMIF
Returns:
channel, this object is related to

setChannel

public void setChannel(ChannelIF channelIF)
Specified by:
setChannel in interface WithChannelMIF
Parameters:
channelIF - the channel, this object is related to


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