org.springframework.roo.project
Enum DependencyScope
java.lang.Object
java.lang.Enum<DependencyScope>
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
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. |
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
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.