org.weborganic.bastille.pageseeder
Enum PSResourceType

java.lang.Object
  extended by java.lang.Enum<PSResourceType>
      extended by org.weborganic.bastille.pageseeder.PSResourceType
All Implemented Interfaces:
Serializable, Comparable<PSResourceType>

public enum PSResourceType
extends Enum<PSResourceType>

Type for resource requested on PageSeeder used to simplify the creation of URLs.

Since:
0.6.2

Enum Constant Summary
RESOURCE
          Any resource on PageSeeder.
SERVICE
          A PageSeeder Service.
SERVLET
          A PageSeeder Servlet.
 
Method Summary
static PSResourceType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PSResourceType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SERVLET

public static final PSResourceType SERVLET
A PageSeeder Servlet.


SERVICE

public static final PSResourceType SERVICE
A PageSeeder Service.


RESOURCE

public static final PSResourceType RESOURCE
Any resource on PageSeeder.

Method Detail

values

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

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

valueOf

public static PSResourceType 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