public enum ScopeType extends Enum<ScopeType>
MavenDependency
metadataEnum Constant and Description |
---|
COMPILE |
IMPORT |
PROVIDED |
RUNTIME |
SYSTEM |
TEST |
Modifier and Type | Method and Description |
---|---|
static ScopeType |
fromScopeType(String scopeName)
Maps a string to ScopeType
|
String |
toString()
Returns the
value of this enum |
static ScopeType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ScopeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScopeType COMPILE
public static final ScopeType PROVIDED
public static final ScopeType RUNTIME
public static final ScopeType TEST
public static final ScopeType SYSTEM
public static final ScopeType IMPORT
public static ScopeType[] values()
for (ScopeType c : ScopeType.values()) System.out.println(c);
public static ScopeType 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 String toString()
value
of this enumtoString
in class Enum<ScopeType>
Enum.toString()
public static ScopeType fromScopeType(String scopeName) throws IllegalArgumentException
scopeName
- String name of the scope typeIllegalArgumentException
- Thrown if scopeName is null
, empty or does not represent a valid scope typeCopyright © 2016 JBoss by Red Hat. All rights reserved.