de.nava.informa.core
Enum ChannelFormat

java.lang.Object
  extended by java.lang.Enum<ChannelFormat>
      extended by de.nava.informa.core.ChannelFormat
All Implemented Interfaces:
Serializable, Comparable<ChannelFormat>

public enum ChannelFormat
extends Enum<ChannelFormat>

Enums to describe which syntax is used by a channel description.

Author:
Niko Schmuck (niko@nava.de), Italo Borssatto

Enum Constant Summary
ATOM_0_1
          Syntax according to the Atom 0.1 specification.
ATOM_0_2
          Syntax according to the Atom 0.2 specification.
ATOM_0_3
          Syntax according to the Atom 0.3 specification.
ATOM_1_0
          Syntax according to the Atom 1.0 specification.
RSS_0_90
          Syntax according to RSS 0.9 specification.
RSS_0_91
          Syntax according to RSS 0.91 specification.
RSS_0_92
          Syntax according to RSS 0.92 specification.
RSS_0_93
          Syntax according to RSS 0.93 specification.
RSS_0_94
          Syntax according to RSS 0.94 specification.
RSS_1_0
          Syntax according to RSS 1.0 specification.
RSS_2_0
          Syntax according to RSS 2.0 specification.
UNKNOWN_CHANNEL_FORMAT
          Convenient null value to make code more robust
 
Method Summary
 String toString()
           
static ChannelFormat valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ChannelFormat[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

UNKNOWN_CHANNEL_FORMAT

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


RSS_0_90

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


RSS_0_91

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


RSS_0_92

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


RSS_0_93

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


RSS_0_94

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


RSS_1_0

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


RSS_2_0

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


ATOM_0_1

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


ATOM_0_2

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


ATOM_0_3

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


ATOM_1_0

public static final ChannelFormat ATOM_1_0
Syntax according to the Atom 1.0 specification.

Method Detail

values

public static final ChannelFormat[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(ChannelFormat c : ChannelFormat.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static ChannelFormat valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name

toString

public String toString()
Overrides:
toString in class Enum<ChannelFormat>


Copyright © 2002-2007 Niko Schmuck. All Rights Reserved.