com.sun.syndication.feed
Class WireFeed

java.lang.Object
  extended bycom.sun.syndication.common.ObjectBean
      extended bycom.sun.syndication.feed.WireFeed
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable, ToString
Direct Known Subclasses:
Channel, Feed

public abstract class WireFeed
extends ObjectBean

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

Author:
Alejandro Abdelnur
See Also:
Serialized Form

Constructor Summary
protected WireFeed()
          Default constructor, for bean cloning purposes only.
protected WireFeed(java.lang.String type)
          Creates a feed for a given type.
 
Method Summary
 java.lang.String getFeedType()
          Returns the type of the feed.
 void setFeedType(java.lang.String feedType)
          Sets the feedType of a the feed.
 
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
 

Constructor Detail

WireFeed

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


WireFeed

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

Parameters:
type - of the feed to create.
Method Detail

setFeedType

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

Parameters:
feedType - the feedType of the feed.

getFeedType

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

Returns:
the type of the feed.


Copyright © 2004 Sun Microsystems. All Rights Reserved.