org.nuiton.rss
Enum FeedType
java.lang.Object
java.lang.Enum<FeedType>
org.nuiton.rss.FeedType
- All Implemented Interfaces:
- Serializable, Comparable<FeedType>
public enum FeedType
- extends Enum<FeedType>
Enumeration of known feed's type.
Used to generate some feed files.
- Author:
- tony
|
Method Summary |
String |
getType()
|
static FeedType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static FeedType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
RSS_0_90
public static final FeedType RSS_0_90
RSS_0_91
public static final FeedType RSS_0_91
RSS_0_92
public static final FeedType RSS_0_92
RSS_0_93
public static final FeedType RSS_0_93
RSS_1_0
public static final FeedType RSS_1_0
RSS_2_0
public static final FeedType RSS_2_0
ATOM_0_3
public static final FeedType ATOM_0_3
ATOM_1_0
public static final FeedType ATOM_1_0
values
public static FeedType[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (FeedType c : FeedType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static FeedType 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
NullPointerException - if the argument is null
getType
public String getType()
Copyright © 2008-2012 CodeLutin. All Rights Reserved.