org.jboss.dna.maven
Enum MavenDependency.Scope
java.lang.Object
java.lang.Enum<MavenDependency.Scope>
org.jboss.dna.maven.MavenDependency.Scope
- All Implemented Interfaces:
- Serializable, Comparable<MavenDependency.Scope>
- Enclosing class:
- MavenDependency
public static enum MavenDependency.Scope
- extends Enum<MavenDependency.Scope>
The scope of the dependency - compile
, runtime
, test
, system
,
and provided
. Used to calculate the various classpaths used for compilation, testing, and so on. It also
assists in determining which artifacts to include in a distribution of this project. For more information, see the dependency mechanism.
COMPILE
public static final MavenDependency.Scope COMPILE
TEST
public static final MavenDependency.Scope TEST
PROVIDED
public static final MavenDependency.Scope PROVIDED
SYSTEM
public static final MavenDependency.Scope SYSTEM
RUNTIME
public static final MavenDependency.Scope RUNTIME
values
public static final MavenDependency.Scope[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(MavenDependency.Scope c : MavenDependency.Scope.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static MavenDependency.Scope 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
getText
public String getText()
valueByText
public static MavenDependency.Scope valueByText(String suffix,
boolean useDefault)
getDefault
public static MavenDependency.Scope getDefault()
getRuntimeScopes
public static EnumSet<MavenDependency.Scope> getRuntimeScopes()
Copyright © 2008-Present JBoss a division of Red Hat. All Rights Reserved.