org.springframework.roo.project
Enum DependencyScope

java.lang.Object
  extended by java.lang.Enum<DependencyScope>
      extended by org.springframework.roo.project.DependencyScope
All Implemented Interfaces:
Serializable, Comparable<DependencyScope>

public enum DependencyScope
extends Enum<DependencyScope>

The scope of the dependency.

Since:
1.1
Author:
Alan Stewart

Enum Constant Summary
COMPILE
           
IMPORT
           
PROVIDED
           
RUNTIME
           
SYSTEM
           
TEST
           
 
Method Summary
static DependencyScope valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DependencyScope[] 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

COMPILE

public static final DependencyScope COMPILE

PROVIDED

public static final DependencyScope PROVIDED

RUNTIME

public static final DependencyScope RUNTIME

TEST

public static final DependencyScope TEST

SYSTEM

public static final DependencyScope SYSTEM

IMPORT

public static final DependencyScope IMPORT
Method Detail

values

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

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

valueOf

public static DependencyScope 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 © 2009-2010 VMware, Inc. All Rights Reserved.