org.jasig.schedassist.model
Enum AvailableStatus

java.lang.Object
  extended by java.lang.Enum<AvailableStatus>
      extended by org.jasig.schedassist.model.AvailableStatus
All Implemented Interfaces:
Serializable, Comparable<AvailableStatus>

public enum AvailableStatus
extends Enum<AvailableStatus>

Enum to represent different potential states for an AvailableBlock.

Version:
$Id: AvailableStatus.java 1710 2010-02-15 16:19:35Z npblair $
Author:
Nicholas Blair, nblair@doit.wisc.edu

Enum Constant Summary
ATTENDING
           
BUSY
           
FREE
           
UNAVAILABLE
           
 
Method Summary
 String getValue()
           
static AvailableStatus valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AvailableStatus[] 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

UNAVAILABLE

public static final AvailableStatus UNAVAILABLE

FREE

public static final AvailableStatus FREE

BUSY

public static final AvailableStatus BUSY

ATTENDING

public static final AvailableStatus ATTENDING
Method Detail

values

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

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

valueOf

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

getValue

public String getValue()
Returns:
the value


Copyright © 2012 Jasig. All Rights Reserved.