com.sun.syndication.feed.rss
クラス Item

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

public class Item
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable, Extendable

Bean for items of RSS feeds.

It handles all RSS versions without loosing information.

For RSS1.0 it supports Dublin Core and Syndication modules. Note that those modules currently support simple syntax format only.

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

コンストラクタの概要
Item()
          Default constructor.
 
メソッドの概要
 java.lang.Object clone()
          Creates a deep 'bean' clone of the object.
 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 item author.
 java.util.List getCategories()
          Returns the item categories.
 java.lang.String getComments()
          Returns the item comments.
 Content getContent()
          Returns the item content.
 Description getDescription()
          Returns the item description.
 java.util.List getEnclosures()
          Returns the item enclosures.
 java.util.Date getExpirationDate()
          Returns the item expiration date.
 java.lang.Object getForeignMarkup()
          Returns foreign markup found at item level.
 Guid getGuid()
          Returns the item GUID.
 java.lang.String getLink()
          Returns the item link.
 Module getModule(java.lang.String uri)
          Returns the module identified by a given URI.
 java.util.List getModules()
          Returns the item modules.
 java.util.Date getPubDate()
          Returns the item publishing date.
 Source getSource()
          Returns the item source.
 java.lang.String getTitle()
          Returns the item title.
 java.lang.String getUri()
          Returns the item uri.
 int hashCode()
          Returns a hashcode value for the object.
 void setAuthor(java.lang.String author)
          Sets the item author.
 void setCategories(java.util.List categories)
          Sets the item categories.
 void setComments(java.lang.String comments)
          Sets the item comments.
 void setContent(Content content)
          Sets the item content.
 void setDescription(Description description)
          Sets the item description.
 void setEnclosures(java.util.List enclosures)
          Sets the item enclosures.
 void setExpirationDate(java.util.Date expirationDate)
          Sets the item expiration date.
 void setForeignMarkup(java.lang.Object foreignMarkup)
          Sets foreign markup found at item level.
 void setGuid(Guid guid)
          Sets the item GUID.
 void setLink(java.lang.String link)
          Sets the item link.
 void setModules(java.util.List modules)
          Sets the item modules.
 void setPubDate(java.util.Date pubDate)
          Sets the item publishing date.
 void setSource(Source source)
          Sets the item source.
 void setTitle(java.lang.String title)
          Sets the item title.
 void setUri(java.lang.String uri)
          Sets the item uri.
 java.lang.String toString()
          Returns the String representation for the object.
 
クラス java.lang.Object から継承されたメソッド
finalize, getClass, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

Item

public Item()
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.

オーバーライド:
クラス 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.

getTitle

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

戻り値:
the item title, null if none.

setTitle

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

パラメータ:
title - the item title to set, null if none.

getLink

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

戻り値:
the item link, null if none.

setLink

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

パラメータ:
link - the item link to set, null if none.

getUri

public java.lang.String getUri()
Returns the item uri.

戻り値:
the item uri, null if none.

setUri

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

パラメータ:
uri - the item uri to set, null if none.

getDescription

public Description getDescription()
Returns the item description.

戻り値:
the item description, null if none.

setDescription

public void setDescription(Description description)
Sets the item description.

パラメータ:
description - the item description to set, null if none.

getContent

public Content getContent()
Returns the item content.

戻り値:
the item content, null if none.

setContent

public void setContent(Content content)
Sets the item content.

パラメータ:
content - the item content to set, null if none.

getSource

public Source getSource()
Returns the item source.

戻り値:
the item source, null if none.

setSource

public void setSource(Source source)
Sets the item source.

パラメータ:
source - the item source to set, null if none.

getEnclosures

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

戻り値:
a list of Enclosure elements with the item enclosures, an empty list if none.

setEnclosures

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

パラメータ:
enclosures - the list of Enclosure elements with the item enclosures to set, an empty list or null if none.

getCategories

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

戻り値:
a list of Category elements with the item categories, an empty list if none.

setCategories

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

パラメータ:
categories - the list of Categories elements with the item categories to set, an empty list or null if none.

getGuid

public Guid getGuid()
Returns the item GUID.

戻り値:
the item GUID, null if none.

setGuid

public void setGuid(Guid guid)
Sets the item GUID.

パラメータ:
guid - the item GUID to set, null if none.

getComments

public java.lang.String getComments()
Returns the item comments.

戻り値:
the item comments, null if none.

setComments

public void setComments(java.lang.String comments)
Sets the item comments.

パラメータ:
comments - the item comments to set, null if none.

getAuthor

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

戻り値:
the item author, null if none.

setAuthor

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

パラメータ:
author - the item author to set, null if none.

getModules

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

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

setModules

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

定義:
インタフェース Extendable 内の setModules
パラメータ:
modules - the list of ModuleImpl elements with the item 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
パラメータ:
uri - the URI of the ModuleImpl.
戻り値:
The module with the given URI, null if none.

getPubDate

public java.util.Date getPubDate()
Returns the item publishing date.

戻り値:
the item publishing date, null if none.

setPubDate

public void setPubDate(java.util.Date pubDate)
Sets the item publishing date.

パラメータ:
pubDate - the item publishing date to set, null if none.

getExpirationDate

public java.util.Date getExpirationDate()
Returns the item expiration date.

戻り値:
the item expiration date, null if none.

setExpirationDate

public void setExpirationDate(java.util.Date expirationDate)
Sets the item expiration date.

パラメータ:
expirationDate - the item expiration date to set, null if none.

getForeignMarkup

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

戻り値:
Opaque object to discourage use

setForeignMarkup

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

パラメータ:
foreignMarkup - Opaque object to discourage use