com.sun.syndication.feed.synd
Class SyndEntry

java.lang.Object
  extended bycom.sun.syndication.common.ObjectBean
      extended bycom.sun.syndication.feed.synd.SyndEntry
All Implemented Interfaces:
java.lang.Cloneable, CopyFrom, java.io.Serializable, SyndEntryI, ToString

public class SyndEntry
extends ObjectBean
implements SyndEntryI

Bean for entries of SyndFeed feeds.

Author:
Alejandro Abdelnur
See Also:
Serialized Form

Constructor Summary
SyndEntry()
          Default constructor.
 
Method Summary
 void copyFrom(java.lang.Object obj)
          Copies all the properties of the given bean into this one.
 java.lang.String getAuthor()
          Returns the entry author.
 java.util.List getCategories()
          Returns the entry categories.
 java.util.List getContents()
          Returns the entry contents.
 SyndContentI getDescription()
          Returns the entry description.
 java.lang.Class getInterface()
          Returns the interface the copyFrom works on.
 java.lang.String getLink()
          Returns the entry link.
 ModuleI getModule(java.lang.String uri)
          Returns the module identified by a given URI.
 java.util.List getModules()
          Returns the entry modules.
 java.util.Date getPublishedDate()
          Returns the entry published date.
 java.lang.String getTitle()
          Returns the entry title.
 void setAuthor(java.lang.String author)
          Sets the entry author.
 void setCategories(java.util.List categories)
          Sets the entry categories.
 void setContents(java.util.List contents)
          Sets the entry contents.
 void setDescription(SyndContentI description)
          Sets the entry description.
 void setLink(java.lang.String link)
          Sets the entry link.
 void setModules(java.util.List modules)
          Sets the entry modules.
 void setPublishedDate(java.util.Date publishedDate)
          Sets the entry published date.
 void setTitle(java.lang.String title)
          Sets the entry title.
 
Methods inherited from class com.sun.syndication.common.ObjectBean
clone, equals, hashCode, toString, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.sun.syndication.feed.synd.SyndEntryI
clone
 
Methods inherited from interface com.sun.syndication.common.ToString
toString
 

Constructor Detail

SyndEntry

public SyndEntry()
Default constructor. All properties are set to null.

Method Detail

getTitle

public java.lang.String getTitle()
Returns the entry title.

Specified by:
getTitle in interface SyndEntryI
Returns:
the entry title, null if none.

setTitle

public void setTitle(java.lang.String title)
Sets the entry title.

Specified by:
setTitle in interface SyndEntryI
Parameters:
title - the entry title to set, null if none.

getLink

public java.lang.String getLink()
Returns the entry link.

Specified by:
getLink in interface SyndEntryI
Returns:
the entry link, null if none.

setLink

public void setLink(java.lang.String link)
Sets the entry link.

Specified by:
setLink in interface SyndEntryI
Parameters:
link - the entry link to set, null if none.

getDescription

public SyndContentI getDescription()
Returns the entry description.

Specified by:
getDescription in interface SyndEntryI
Returns:
the entry description, null if none.

setDescription

public void setDescription(SyndContentI description)
Sets the entry description.

Specified by:
setDescription in interface SyndEntryI
Parameters:
description - the entry description to set, null if none.

getContents

public java.util.List getContents()
Returns the entry contents.

Specified by:
getContents in interface SyndEntryI
Returns:
a list of SyndContent elements with the entry contents, an empty list if none.

setContents

public void setContents(java.util.List contents)
Sets the entry contents.

Specified by:
setContents in interface SyndEntryI
Parameters:
contents - the list of SyndContent elements with the entry contents to set, an empty list or null if none.

getPublishedDate

public java.util.Date getPublishedDate()
Returns the entry published date.

This method is a convenience method, it maps to the Dublin Core module date.

Specified by:
getPublishedDate in interface SyndEntryI
Returns:
the entry published date, null if none.

setPublishedDate

public void setPublishedDate(java.util.Date publishedDate)
Sets the entry published date.

This method is a convenience method, it maps to the Dublin Core module date.

Specified by:
setPublishedDate in interface SyndEntryI
Parameters:
publishedDate - the entry published date to set, null if none.

getAuthor

public java.lang.String getAuthor()
Returns the entry author.

This method is a convenience method, it maps to the Dublin Core module creator.

Specified by:
getAuthor in interface SyndEntryI
Returns:
the entry author, null if none.

setAuthor

public void setAuthor(java.lang.String author)
Sets the entry author.

This method is a convenience method, it maps to the Dublin Core module creator.

Specified by:
setAuthor in interface SyndEntryI
Parameters:
author - the entry author to set, null if none.

getCategories

public java.util.List getCategories()
Returns the entry categories.

This method is a convenience method, it maps to the Dublin Core module subjects.

Specified by:
getCategories in interface SyndEntryI
Returns:
a list of SyndCategory elements with the entry categories, an empty list if none.

setCategories

public void setCategories(java.util.List categories)
Sets the entry categories.

This method is a convenience method, it maps to the Dublin Core module subjects.

Specified by:
setCategories in interface SyndEntryI
Parameters:
categories - the list of SyndCategory elements with the entry categories to set, an empty list or null if none.

getModules

public java.util.List getModules()
Returns the entry modules.

Specified by:
getModules in interface SyndEntryI
Returns:
a list of Module elements with the entry modules, an empty list if none.

setModules

public void setModules(java.util.List modules)
Sets the entry modules.

Specified by:
setModules in interface SyndEntryI
Parameters:
modules - the list of Module elements with the entry modules to set, an empty list or null if none.

getModule

public ModuleI getModule(java.lang.String uri)
Returns the module identified by a given URI.

Specified by:
getModule in interface SyndEntryI
Parameters:
uri - the URI of the Module.
Returns:
The module with the given URI, null if none.

getInterface

public java.lang.Class getInterface()
Description copied from interface: CopyFrom
Returns the interface the copyFrom works on.

This is useful when dealing with properties that may have multiple implementations. For example, ModuleI.

Specified by:
getInterface in interface CopyFrom
Returns:
the interface the copyFrom works on.

copyFrom

public void copyFrom(java.lang.Object obj)
Description copied from interface: CopyFrom
Copies all the properties of the given bean into this one.

Any existing properties in this bean are lost.

This method is useful for moving from one implementation of a bean interface to another. For example from the default SyndFeedI bean implementation to a Hibernate ready implementation.

Specified by:
copyFrom in interface CopyFrom
Parameters:
obj - the instance to copy properties from.


Copyright © 2004 Sun Microsystems. All Rights Reserved.