org.clapper.curn.parser
Enum RSSLink.Type

java.lang.Object
  extended by java.lang.Enum<RSSLink.Type>
      extended by org.clapper.curn.parser.RSSLink.Type
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<RSSLink.Type>
Enclosing class:
RSSLink

public static enum RSSLink.Type
extends java.lang.Enum<RSSLink.Type>

Link types.


Enum Constant Summary
ALTERNATE
          The link refers to an alternate page containing the same information, but perhaps in a different format (e.g., HTML).
SELF
          The link refers back to the RSS feed.
 
Method Summary
static RSSLink.Type valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static RSSLink.Type[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SELF

public static final RSSLink.Type SELF
The link refers back to the RSS feed.


ALTERNATE

public static final RSSLink.Type ALTERNATE
The link refers to an alternate page containing the same information, but perhaps in a different format (e.g., HTML).

Method Detail

values

public static final RSSLink.Type[] 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(RSSLink.Type c : RSSLink.Type.values())
        System.out.println(c);

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

valueOf

public static RSSLink.Type valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name


Copyright © 2004-2006 Brian M. Clapper. All Rights Reserved.