com.sun.syndication.feed
クラス WireFeed

java.lang.Object
  上位を拡張 com.sun.syndication.feed.WireFeed
すべての実装されたインタフェース:
Extendable, java.io.Serializable, java.lang.Cloneable
直系の既知のサブクラス:
Channel, Feed

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

Parent class of the RSS (Channel) and Atom (Feed) feed beans.

NOTE: We don't like this class at this package level but the alternative would have been a proliferation of packages (one more level to hold atom and rss package with this class just in that package).

The format of the 'type' property must be [FEEDNAME]_[FEEDVERSION] with the FEEDNAME in lower case, for example: rss_0.9, rss_0.93, atom_0.3

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

コンストラクタの概要
protected WireFeed()
          Default constructor, for bean cloning purposes only.
protected WireFeed(java.lang.String type)
          Creates a feed for a given type.
 
メソッドの概要
 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 getEncoding()
          Returns the charset encoding of a the feed.
 java.lang.String getFeedType()
          Returns the type of the feed.
 java.lang.Object getForeignMarkup()
          Returns foreign markup found at channel level.
 Module getModule(java.lang.String uri)
          Returns the module identified by a given URI.
 java.util.List getModules()
          Returns the channel modules.
 int hashCode()
          Returns a hashcode value for the object.
 void setEncoding(java.lang.String encoding)
          Sets the charset encoding of a the feed.
 void setFeedType(java.lang.String feedType)
          Sets the feedType of a the feed.
 void setForeignMarkup(java.lang.Object foreignMarkup)
          Sets foreign markup found at channel level.
 void setModules(java.util.List modules)
          Sets the channel modules.
 java.lang.String toString()
          Returns the String representation for the object.
 
クラス java.lang.Object から継承されたメソッド
finalize, getClass, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

WireFeed

protected WireFeed()
Default constructor, for bean cloning purposes only.


WireFeed

protected WireFeed(java.lang.String type)
Creates a feed for a given type.

パラメータ:
type - of the feed to create.
メソッドの詳細

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.

setFeedType

public void setFeedType(java.lang.String feedType)
Sets the feedType of a the feed. Do not use, for bean cloning purposes only.

パラメータ:
feedType - the feedType of the feed.

getFeedType

public java.lang.String getFeedType()
Returns the type of the feed.

戻り値:
the type of the feed.

getEncoding

public java.lang.String getEncoding()
Returns the charset encoding of a the feed.

This property is not set by feed parsers. But it is used by feed generators to set the encoding in the XML prolog.

戻り値:
the charset encoding of the feed.

setEncoding

public void setEncoding(java.lang.String encoding)
Sets the charset encoding of a the feed.

This property is not set by feed parsers. But it is used by feed generators to set the encoding in the XML prolog.

パラメータ:
encoding - the charset encoding of the feed.

getModules

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

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

setModules

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

定義:
インタフェース Extendable 内の setModules
パラメータ:
modules - the list of ModuleImpl elements with the channel 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.

getForeignMarkup

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

戻り値:
Opaque object to discourage use

setForeignMarkup

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

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