net.dpml.library.info
Class Scope

java.lang.Object
  extended bynet.dpml.lang.Enum
      extended bynet.dpml.lang.ValuedEnum
          extended bynet.dpml.library.info.Scope
All Implemented Interfaces:
Comparable, Serializable

public final class Scope
extends ValuedEnum
implements Comparable

Enumeration identifying BUILD, RUNTIME and TEST phases.

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

Field Summary
static Scope BUILD
          Build scope.
static Scope RUNTIME
          Runtime scope.
static Scope TEST
          Test scope.
 
Method Summary
static Scope parse(String value)
          Return a scope value matching the supplied value.
 String toString()
          Return a string representation of the scope.
static Scope[] 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

BUILD

public static final Scope BUILD
Build scope.


RUNTIME

public static final Scope RUNTIME
Runtime scope.


TEST

public static final Scope TEST
Test scope.

Method Detail

values

public static Scope[] 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 ValuedEnum
Returns:
the string value

parse

public static Scope parse(String value)
                   throws IllegalArgumentException
Return a scope value matching the supplied value.

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