org.eclipse.ecf.provider.rss.channel
Class RSSVersion

java.lang.Object
  extended by org.eclipse.ecf.provider.rss.channel.RSSVersion
All Implemented Interfaces:
java.io.Serializable

public class RSSVersion
extends java.lang.Object
implements java.io.Serializable

Holds constants to specify the version of RSS that the document conforms to.

Author:
Sergey Yakovlev
See Also:
Serialized Form

Field Summary
static RSSVersion ATOM_0_1
          Syntax according to the Atom 0.1 specification.
static RSSVersion ATOM_0_2
          Syntax according to the Atom 0.2 specification.
static RSSVersion ATOM_0_3
          Syntax according to the Atom 0.3 specification.
static RSSVersion RSS_0_90
          Syntax according to RSS 0.9 specification.
static RSSVersion RSS_0_91
          Syntax according to RSS 0.91 specification.
static RSSVersion RSS_0_92
          Syntax according to RSS 0.92 specification.
static RSSVersion RSS_0_93
          Syntax according to RSS 0.93 specification.
static RSSVersion RSS_0_94
          Syntax according to RSS 0.94 specification.
static RSSVersion RSS_1_0
          Syntax according to RSS 1.0 specification.
static RSSVersion RSS_2_0
          Syntax according to RSS 2.0 specification.
static RSSVersion UNKNOWN_CHANNEL_FORMAT
          Convenient null value to make code more robust
 
Constructor Summary
RSSVersion(java.lang.String rssSpecVersion)
          Initializes a newly created RSSVersion object so that it represents the same version as the argument.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

UNKNOWN_CHANNEL_FORMAT

public static final RSSVersion UNKNOWN_CHANNEL_FORMAT
Convenient null value to make code more robust


RSS_0_90

public static final RSSVersion RSS_0_90
Syntax according to RSS 0.9 specification.


RSS_0_91

public static final RSSVersion RSS_0_91
Syntax according to RSS 0.91 specification.


RSS_0_92

public static final RSSVersion RSS_0_92
Syntax according to RSS 0.92 specification.


RSS_0_93

public static final RSSVersion RSS_0_93
Syntax according to RSS 0.93 specification.


RSS_0_94

public static final RSSVersion RSS_0_94
Syntax according to RSS 0.94 specification.


RSS_1_0

public static final RSSVersion RSS_1_0
Syntax according to RSS 1.0 specification.


RSS_2_0

public static final RSSVersion RSS_2_0
Syntax according to RSS 2.0 specification.


ATOM_0_1

public static final RSSVersion ATOM_0_1
Syntax according to the Atom 0.1 specification.


ATOM_0_2

public static final RSSVersion ATOM_0_2
Syntax according to the Atom 0.2 specification.


ATOM_0_3

public static final RSSVersion ATOM_0_3
Syntax according to the Atom 0.3 specification.

Constructor Detail

RSSVersion

public RSSVersion(java.lang.String rssSpecVersion)
Initializes a newly created RSSVersion object so that it represents the same version as the argument.

Parameters:
rssSpecVersion - - a String containing the version.
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object