Lizzy v1.1.1

christophedelory.rss
Class RSS

java.lang.Object
  extended by christophedelory.rss.RSS

public class RSS
extends Object

A RSS document. RSS is a Web content syndication format. Its name is an acronym for Really Simple Syndication. See the RSS 2.0 specification. In RSS 0.91 various elements are restricted to 500 or 100 characters. There are no string-length or XML-level limits in RSS 0.92. Processors may impose their own limits, and generators may have preferences that say no more than a certain number of items can appear in a channel, or that strings are limited in length.

Version:
$Revision: 92 $
Author:
Christophe Delory

Field Summary
static String VERSION_0_91
          The RSS version 0.91 identifier.
static String VERSION_0_92
          The RSS version 0.92 identifier.
static String VERSION_2_0
          The RSS version 2.0 identifier.
 
Constructor Summary
RSS()
          Builds a new and empty RSS feed.
 
Method Summary
 Channel getChannel()
          Returns the channel assigned to this RSS document.
 String getVersion()
          Returns the version of RSS that this document conforms to.
 void setChannel(Channel channel)
          Assigns the specified channel to this RSS document.
 void setVersion(String version)
          Initializes the version of RSS that this document conforms to.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERSION_2_0

public static final String VERSION_2_0
The RSS version 2.0 identifier.

See Also:
Constant Field Values

VERSION_0_92

public static final String VERSION_0_92
The RSS version 0.92 identifier.

See Also:
Constant Field Values

VERSION_0_91

public static final String VERSION_0_91
The RSS version 0.91 identifier.

See Also:
Constant Field Values
Constructor Detail

RSS

public RSS()
Builds a new and empty RSS feed.

Method Detail

getVersion

public String getVersion()
Returns the version of RSS that this document conforms to. Defaults to VERSION_2_0.

Returns:
a version number. Shall not be null.
See Also:
setVersion(java.lang.String)

setVersion

public void setVersion(String version)
Initializes the version of RSS that this document conforms to.

Parameters:
version - a version number. SHall not be null.
Throws:
NullPointerException - if version is null.
See Also:
getVersion(), VERSION_0_91, VERSION_0_92, VERSION_2_0

getChannel

public Channel getChannel()
Returns the channel assigned to this RSS document. Contains information about the channel (metadata) and its contents. Defaults to an empty channel.

Returns:
a RSS channel. Shall not be null.
See Also:
setChannel(christophedelory.rss.Channel)

setChannel

public void setChannel(Channel channel)
Assigns the specified channel to this RSS document.

Parameters:
channel - a RSS channel. Shall not be null.
Throws:
NullPointerException - if channel is null.
See Also:
getChannel()

© 2008-2009 Christophe Delory

Copyright © 2008-2009 Christophe Delory. All Rights Reserved.