com.sun.syndication.feed
Class AbstractFeed

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

public abstract class AbstractFeed
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 AbstractFeed()
          Default constructor, for bean cloning purposes only.
protected AbstractFeed(java.lang.String type)
          Creates a feed for a given type.
 
Method Summary
 java.lang.String getType()
          Returns the type of the feed.
 void setType(java.lang.String type)
          Sets the type 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

AbstractFeed

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


AbstractFeed

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

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

setType

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

Parameters:
type - the type of the feed.

getType

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

Returns:
the type of the feed.


Copyright © 2004 Sun Microsystems. All Rights Reserved.