org.deegree.commons.config
Enum ResourceState.StateType

java.lang.Object
  extended by java.lang.Enum<ResourceState.StateType>
      extended by org.deegree.commons.config.ResourceState.StateType
All Implemented Interfaces:
Serializable, Comparable<ResourceState.StateType>
Enclosing class:
ResourceState<T extends Resource>

public static enum ResourceState.StateType
extends Enum<ResourceState.StateType>

Represents the lifecycle phases of a Resource.

Version:
$Revision: 30337 $, $Date: 2011-04-04 14:21:18 +0200 (Mon, 04 Apr 2011) $
Author:
Markus Schneider, last edited by: $Author: mschneider $

Enum Constant Summary
created
          Resource has been created, but not initialized yet
deactivated
          Resource is deactivated
destroyed
          Resource has been destroyed
init_error
          Error occured during initialization
init_ok
          Resource has been successfully initialized
 
Method Summary
static ResourceState.StateType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ResourceState.StateType[] 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

deactivated

public static final ResourceState.StateType deactivated
Resource is deactivated


created

public static final ResourceState.StateType created
Resource has been created, but not initialized yet


init_ok

public static final ResourceState.StateType init_ok
Resource has been successfully initialized


init_error

public static final ResourceState.StateType init_error
Error occured during initialization


destroyed

public static final ResourceState.StateType destroyed
Resource has been destroyed

Method Detail

values

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

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

valueOf

public static ResourceState.StateType 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


Copyright © 2011. All Rights Reserved.