net.dpml.station.info
Class StartupPolicy

java.lang.Object
  extended by net.dpml.lang.Enum
      extended by net.dpml.station.info.StartupPolicy
All Implemented Interfaces:
Serializable

public final class StartupPolicy
extends Enum

Lifestyle policy enumeration.

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

Field Summary
static StartupPolicy AUTOMATIC
          Automatic startup policy.
static StartupPolicy DISABLED
          Disable policy.
static StartupPolicy MANUAL
          Manual startup policy.
 
Method Summary
static StartupPolicy parse(String value)
          Return a startup policy matching the supplied value.
 String toString()
          Return a string representation of the scope.
static StartupPolicy[] values()
          Returns an array of activation enum values.
 
Methods inherited from class net.dpml.lang.Enum
equals, getName, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DISABLED

public static final StartupPolicy DISABLED
Disable policy.


MANUAL

public static final StartupPolicy MANUAL
Manual startup policy.


AUTOMATIC

public static final StartupPolicy AUTOMATIC
Automatic startup policy.

Method Detail

values

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

Returns:
the activation policies array

toString

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

Overrides:
toString in class Enum
Returns:
the string value

parse

public static StartupPolicy parse(String value)
                           throws NullPointerException,
                                  IllegalArgumentException
Return a startup policy matching the supplied value.

Parameters:
value - the policy name
Returns:
the startup policy
Throws:
NullPointerException - if the value if null
IllegalArgumentException - if the value if not recognized