public enum DependencyScope extends Enum<DependencyScope>
| Enum Constant and Description |
|---|
COMPILE |
IMPORT |
PROVIDED |
RUNTIME |
SYSTEM |
TEST |
| Modifier and Type | Method and Description |
|---|---|
static DependencyScope |
getScope(Element dependency)
Parses the scope of the given dependency XML element
|
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.
|
public static final DependencyScope COMPILE
public static final DependencyScope IMPORT
public static final DependencyScope PROVIDED
public static final DependencyScope RUNTIME
public static final DependencyScope SYSTEM
public static final DependencyScope TEST
public static DependencyScope[] values()
for (DependencyScope c : DependencyScope.values()) System.out.println(c);
public static DependencyScope valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static DependencyScope getScope(Element dependency)
dependency - the element to parse (required)null scopeCopyright © 2009–2017 Pivotal Software, Inc.. All rights reserved.