Forge - Parent 1.0.7-SNAPSHOT

org.jboss.forge.shell.events
Enum Shutdown.Status

java.lang.Object
  extended by java.lang.Enum<Shutdown.Status>
      extended by org.jboss.forge.shell.events.Shutdown.Status
All Implemented Interfaces:
Serializable, Comparable<Shutdown.Status>
Enclosing class:
Shutdown

public static enum Shutdown.Status
extends Enum<Shutdown.Status>

Status of the shell during shutdown.


Enum Constant Summary
ERROR
          A fatal error has forced the shell to shut down.
NORMAL
          The shell is shutting down normally.
 
Method Summary
static Shutdown.Status valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Shutdown.Status[] 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

NORMAL

public static final Shutdown.Status NORMAL
The shell is shutting down normally.


ERROR

public static final Shutdown.Status ERROR
A fatal error has forced the shell to shut down.

Method Detail

values

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

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

valueOf

public static Shutdown.Status 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

Forge - Parent 1.0.7-SNAPSHOT

Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.