com.ace.moab.api.reservation
Enum ReservationType

java.lang.Object
  extended by java.lang.Enum<ReservationType>
      extended by com.ace.moab.api.reservation.ReservationType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ReservationType>

public enum ReservationType
extends java.lang.Enum<ReservationType>

This enumeration specifies the type of a reservation.


Enum Constant Summary
JOB
           
META
           
NONE
           
USER
           
 
Method Summary
static java.util.List<java.lang.String> getTypeNames()
          Returns the names of the reservation types.
static ReservationType parseString(java.lang.String string)
          Parse the string to a given reservation type object.
 java.lang.String toString()
           
static ReservationType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ReservationType[] 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

NONE

public static final ReservationType NONE

JOB

public static final ReservationType JOB

USER

public static final ReservationType USER

META

public static final ReservationType META
Method Detail

values

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

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

valueOf

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<ReservationType>

parseString

public static ReservationType parseString(java.lang.String string)
                                   throws java.text.ParseException
Parse the string to a given reservation type object.

Parameters:
string - A string representing a reservation type.
Returns:
a reservation type object with the given input name
Throws:
java.text.ParseException - If a reservation type could not be found using the input string.

getTypeNames

public static java.util.List<java.lang.String> getTypeNames()
Returns the names of the reservation types.

Returns:
the names of the reservation types.


Copyright © 2001-2009 Cluster Resources, Inc. All Rights Reserved.