net.dpml.station
Class ProcessState

java.lang.Object
  extended bynet.dpml.lang.Enum
      extended bynet.dpml.lang.ValuedEnum
          extended bynet.dpml.station.ProcessState
All Implemented Interfaces:
Comparable, Serializable

public final class ProcessState
extends ValuedEnum
implements Comparable

Lifestyle policy enumeration.

Version:
1.0.1
Author:
Digital Product Meta Library
See Also:
Serialized Form

Field Summary
static ProcessState IDLE
          Idle state.
static ProcessState STARTED
          Started state.
static ProcessState STARTING
          Starting state.
static ProcessState STOPPED
          Started state.
static ProcessState STOPPING
          Started state.
 
Method Summary
static ProcessState parse(String value)
          Return a state value matching the supplied value.
 String toString()
          Return a string representation of the state.
static ProcessState[] values()
          Returns an array of activation enum values.
 
Methods inherited from class net.dpml.lang.ValuedEnum
compareTo, equals, getValue, hashCode, isEqualTo, isGreaterThan, isGreaterThanOrEqual, isLessThan, isLessThanOrEqual
 
Methods inherited from class net.dpml.lang.Enum
getName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Field Detail

IDLE

public static final ProcessState IDLE
Idle state.


STARTING

public static final ProcessState STARTING
Starting state.


STARTED

public static final ProcessState STARTED
Started state.


STOPPING

public static final ProcessState STOPPING
Started state.


STOPPED

public static final ProcessState STOPPED
Started state.

Method Detail

values

public static ProcessState[] values()
Returns an array of activation enum values.

Returns:
the activation policies array

toString

public String toString()
Return a string representation of the state.

Overrides:
toString in class ValuedEnum
Returns:
the string value

parse

public static ProcessState parse(String value)
                          throws IllegalArgumentException
Return a state value matching the supplied value.

Parameters:
value - the state name
Returns:
the state
Throws:
IllegalArgumentException - if the name if not recognized