edu.mit.jwi.data
Enum IHasLifecycle.LifecycleState

java.lang.Object
  extended by java.lang.Enum<IHasLifecycle.LifecycleState>
      extended by edu.mit.jwi.data.IHasLifecycle.LifecycleState
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<IHasLifecycle.LifecycleState>
Enclosing interface:
IHasLifecycle

public static enum IHasLifecycle.LifecycleState
extends java.lang.Enum<IHasLifecycle.LifecycleState>

An enum that represents the four different lifecycle states an object may be in. It may be closed, open, in the processing of opening, or in the process of closing.

Since:
JWI 2.4.0
Version:
2.4.0
Author:
Mark A. Finlayson

Enum Constant Summary
CLOSED
           
CLOSING
           
OPEN
           
OPENING
           
 
Method Summary
static IHasLifecycle.LifecycleState valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static IHasLifecycle.LifecycleState[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CLOSED

public static final IHasLifecycle.LifecycleState CLOSED

OPENING

public static final IHasLifecycle.LifecycleState OPENING

OPEN

public static final IHasLifecycle.LifecycleState OPEN

CLOSING

public static final IHasLifecycle.LifecycleState CLOSING
Method Detail

values

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

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

valueOf

public static IHasLifecycle.LifecycleState 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 © 2007-2013 Massachusetts Institute of Technology. All Rights Reserved.