com.sun.syndication.feed.synd
クラス SyndEntryImpl

java.lang.Object
  上位を拡張 com.sun.syndication.feed.synd.SyndEntryImpl
すべての実装されたインタフェース:
CopyFrom, Extendable, SyndEntry, java.io.Serializable, java.lang.Cloneable

public class SyndEntryImpl
extends java.lang.Object
implements java.io.Serializable, SyndEntry

Bean for entries of SyndFeedImpl feeds.

関連項目:
直列化された形式

フィールドの概要
static java.util.Set CONVENIENCE_PROPERTIES
          Unmodifiable Set containing the convenience properties of this class.
 
コンストラクタの概要
  SyndEntryImpl()
          Default constructor.
protected SyndEntryImpl(java.lang.Class beanClass, java.util.Set convenienceProperties)
          For implementations extending SyndEntryImpl to be able to use the ObjectBean functionality with extended interfaces.
 
メソッドの概要
 java.lang.Object clone()
          Creates a deep 'bean' clone of the object.
 void copyFrom(java.lang.Object obj)
          Copies all the properties of the given bean into this one.
 boolean equals(java.lang.Object other)
          Indicates whether some other object is "equal to" this one as defined by the Object equals() method.
 java.lang.String getAuthor()
          Returns the entry author.
 java.util.List getAuthors()
          Returns the entry authors.
 java.util.List getCategories()
          Returns the entry categories.
 java.util.List getContents()
          Returns the entry contents.
 java.util.List getContributors()
          Returns the feed author.
 SyndContent getDescription()
          Returns the entry description.
 java.util.List getEnclosures()
          Returns the entry enclosures.
 java.lang.Object getForeignMarkup()
          Returns foreign markup found at channel level.
 java.lang.Class getInterface()
          Returns the interface the copyFrom works on.
 java.lang.String getLink()
          Returns the entry link.
 java.util.List getLinks()
          Returns the links
 Module 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.
 SyndFeed getSource()
          Returns the entry source.
 java.lang.String getTitle()
          Returns the entry title.
 SyndContent getTitleEx()
          Returns the entry title as a text construct.
 java.util.Date getUpdatedDate()
          Returns the updatedDate
 java.lang.String getUri()
          Returns the entry URI.
 int hashCode()
          Returns a hashcode value for the object.
 void setAuthor(java.lang.String author)
          Sets the entry author.
 void setAuthors(java.util.List authors)
          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 setContributors(java.util.List contributors)
          Sets the feed contributors.
 void setDescription(SyndContent description)
          Sets the entry description.
 void setEnclosures(java.util.List enclosures)
          Sets the entry enclosures.
 void setForeignMarkup(java.lang.Object foreignMarkup)
          Sets foreign markup found at channel level.
 void setLink(java.lang.String link)
          Sets the entry link.
 void setLinks(java.util.List links)
          Set the links
 void setModules(java.util.List modules)
          Sets the entry modules.
 void setPublishedDate(java.util.Date publishedDate)
          Sets the entry published date.
 void setSource(SyndFeed source)
          Sets the entry source feed (for use if different from containing feed)
 void setTitle(java.lang.String title)
          Sets the entry title.
 void setTitleEx(SyndContent title)
          Sets the entry title as a text construct.
 void setUpdatedDate(java.util.Date updatedDate)
          Set the updatedDate
 void setUri(java.lang.String uri)
          Sets the entry URI.
 java.lang.String toString()
          Returns the String representation for the object.
 
クラス java.lang.Object から継承されたメソッド
finalize, getClass, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

CONVENIENCE_PROPERTIES

public static final java.util.Set CONVENIENCE_PROPERTIES
Unmodifiable Set containing the convenience properties of this class.

Convenience properties are mapped to Modules, for cloning the convenience properties can be ignored as the will be copied as part of the module cloning.

コンストラクタの詳細

SyndEntryImpl

protected SyndEntryImpl(java.lang.Class beanClass,
                        java.util.Set convenienceProperties)
For implementations extending SyndEntryImpl to be able to use the ObjectBean functionality with extended interfaces.

パラメータ:
beanClass -
convenienceProperties - set containing the convenience properties of the SyndEntryImpl (the are ignored during cloning, check CloneableBean for details).

SyndEntryImpl

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

メソッドの詳細

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Creates a deep 'bean' clone of the object.

定義:
インタフェース SyndEntry 内の clone
オーバーライド:
クラス java.lang.Object 内の clone
戻り値:
a clone of the object.
例外:
java.lang.CloneNotSupportedException - thrown if an element of the object cannot be cloned.

equals

public boolean equals(java.lang.Object other)
Indicates whether some other object is "equal to" this one as defined by the Object equals() method.

オーバーライド:
クラス java.lang.Object 内の equals
パラメータ:
other - he reference object with which to compare.
戻り値:
true if 'this' object is equal to the 'other' object.

hashCode

public int hashCode()
Returns a hashcode value for the object.

It follows the contract defined by the Object hashCode() method.

オーバーライド:
クラス java.lang.Object 内の hashCode
戻り値:
the hashcode of the bean object.

toString

public java.lang.String toString()
Returns the String representation for the object.

オーバーライド:
クラス java.lang.Object 内の toString
戻り値:
String representation for the object.

getUri

public java.lang.String getUri()
Returns the entry URI.

How the entry URI maps to a concrete feed type (RSS or Atom) depends on the concrete feed type. This is explained in detail in Rome documentation, Feed and entry URI mapping.

The returned URI is a normalized URI as specified in RFC 2396bis.

定義:
インタフェース SyndEntry 内の getUri
戻り値:
the entry URI, null if none.

setUri

public void setUri(java.lang.String uri)
Sets the entry URI.

How the entry URI maps to a concrete feed type (RSS or Atom) depends on the concrete feed type. This is explained in detail in Rome documentation, Feed and entry URI mapping.

定義:
インタフェース SyndEntry 内の setUri
パラメータ:
uri - the entry URI to set, null if none.

getTitle

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

定義:
インタフェース SyndEntry 内の getTitle
戻り値:
the entry title, null if none.

setTitle

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

定義:
インタフェース SyndEntry 内の setTitle
パラメータ:
title - the entry title to set, null if none.

getTitleEx

public SyndContent getTitleEx()
Returns the entry title as a text construct.

定義:
インタフェース SyndEntry 内の getTitleEx
戻り値:
the entry title, null if none.

setTitleEx

public void setTitleEx(SyndContent title)
Sets the entry title as a text construct.

定義:
インタフェース SyndEntry 内の setTitleEx
パラメータ:
title - the entry title to set, null if none.

getLink

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

定義:
インタフェース SyndEntry 内の getLink
戻り値:
the entry link, null if none.

setLink

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

定義:
インタフェース SyndEntry 内の setLink
パラメータ:
link - the entry link to set, null if none.

getDescription

public SyndContent getDescription()
Returns the entry description.

定義:
インタフェース SyndEntry 内の getDescription
戻り値:
the entry description, null if none.

setDescription

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

定義:
インタフェース SyndEntry 内の setDescription
パラメータ:
description - the entry description to set, null if none.

getContents

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

定義:
インタフェース SyndEntry 内の getContents
戻り値:
a list of SyndContentImpl elements with the entry contents, an empty list if none.

setContents

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

定義:
インタフェース SyndEntry 内の setContents
パラメータ:
contents - the list of SyndContentImpl elements with the entry contents to set, an empty list or null if none.

getEnclosures

public java.util.List getEnclosures()
Returns the entry enclosures.

定義:
インタフェース SyndEntry 内の getEnclosures
戻り値:
a list of SyndEnclosure elements with the entry enclosures, an empty list if none.

setEnclosures

public void setEnclosures(java.util.List enclosures)
Sets the entry enclosures.

定義:
インタフェース SyndEntry 内の setEnclosures
パラメータ:
enclosures - the list of SyndEnclosure elements with the entry enclosures 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.

定義:
インタフェース SyndEntry 内の getPublishedDate
戻り値:
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.

定義:
インタフェース SyndEntry 内の setPublishedDate
パラメータ:
publishedDate - the entry published date to set, null if none.

getCategories

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

定義:
インタフェース SyndEntry 内の getCategories
戻り値:
a list of SyndCategoryImpl 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.

定義:
インタフェース SyndEntry 内の setCategories
パラメータ:
categories - the list of SyndCategoryImpl elements with the entry categories to set, an empty list or null if none.

getModules

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

定義:
インタフェース Extendable 内の getModules
定義:
インタフェース SyndEntry 内の getModules
戻り値:
a list of ModuleImpl elements with the entry modules, an empty list if none.

setModules

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

定義:
インタフェース Extendable 内の setModules
定義:
インタフェース SyndEntry 内の setModules
パラメータ:
modules - the list of ModuleImpl elements with the entry modules to set, an empty list or null if none.

getModule

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

定義:
インタフェース Extendable 内の getModule
定義:
インタフェース SyndEntry 内の getModule
パラメータ:
uri - the URI of the ModuleImpl.
戻り値:
The module with the given URI, null if none.

getInterface

public java.lang.Class getInterface()
インタフェース CopyFrom の記述:
Returns the interface the copyFrom works on.

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

定義:
インタフェース CopyFrom 内の getInterface
戻り値:
the interface the copyFrom works on.

copyFrom

public void copyFrom(java.lang.Object obj)
インタフェース 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 SyndFeed bean implementation to a Hibernate ready implementation.

定義:
インタフェース CopyFrom 内の copyFrom
パラメータ:
obj - the instance to copy properties from.

getLinks

public java.util.List getLinks()
Returns the links

定義:
インタフェース SyndEntry 内の getLinks
戻り値:
Returns the links.

setLinks

public void setLinks(java.util.List links)
Set the links

定義:
インタフェース SyndEntry 内の setLinks
パラメータ:
links - The links to set.

getUpdatedDate

public java.util.Date getUpdatedDate()
Returns the updatedDate

定義:
インタフェース SyndEntry 内の getUpdatedDate
戻り値:
Returns the updatedDate.

setUpdatedDate

public void setUpdatedDate(java.util.Date updatedDate)
Set the updatedDate

定義:
インタフェース SyndEntry 内の setUpdatedDate
パラメータ:
updatedDate - The updatedDate to set.

getAuthors

public java.util.List getAuthors()
インタフェース SyndEntry の記述:
Returns the entry authors.

For Atom feeds, this returns the authors as a list of SyndPerson objects, for RSS feeds this method is a convenience method, it maps to the Dublin Core module creator.

定義:
インタフェース SyndEntry 内の getAuthors
戻り値:
the feed author, null if none.

setAuthors

public void setAuthors(java.util.List authors)
インタフェース SyndEntry の記述:
Sets the entry author.

For Atom feeds, this sets the authors as a list of SyndPerson objects, for RSS feeds this method is a convenience method, it maps to the Dublin Core module creator.

定義:
インタフェース SyndEntry 内の setAuthors
パラメータ:
authors - the feed author 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.

定義:
インタフェース SyndEntry 内の getAuthor
戻り値:
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.

定義:
インタフェース SyndEntry 内の setAuthor
パラメータ:
author - the entry author to set, null if none.

getContributors

public java.util.List getContributors()
インタフェース SyndEntry の記述:
Returns the feed author.

For Atom feeds, this returns the contributors as a list of SyndPerson objects

定義:
インタフェース SyndEntry 内の getContributors
戻り値:
the feed author, null if none.

setContributors

public void setContributors(java.util.List contributors)
インタフェース SyndEntry の記述:
Sets the feed contributors.

Returns contributors as a list of SyndPerson objects.

定義:
インタフェース SyndEntry 内の setContributors
パラメータ:
contributors - the feed contributors to set, null if none.

getSource

public SyndFeed getSource()
インタフェース SyndEntry の記述:
Returns the entry source.

This returns the entry source as a SyndFeed

定義:
インタフェース SyndEntry 内の getSource
戻り値:
the SyndFeed to which this entry is attributed

setSource

public void setSource(SyndFeed source)
インタフェース SyndEntry の記述:
Sets the entry source feed (for use if different from containing feed)

定義:
インタフェース SyndEntry 内の setSource
パラメータ:
source - the original SyndFeed that contained this article

getForeignMarkup

public java.lang.Object getForeignMarkup()
Returns foreign markup found at channel level.

定義:
インタフェース SyndEntry 内の getForeignMarkup
戻り値:
list of JDOM nodes containing channel-level foreign markup, an empty list if none.

setForeignMarkup

public void setForeignMarkup(java.lang.Object foreignMarkup)
Sets foreign markup found at channel level.

定義:
インタフェース SyndEntry 内の setForeignMarkup
パラメータ:
foreignMarkup - list of JDOM nodes containing channel-level foreign markup, an empty list if none.