Package org.apache.maven.artifact
Enum ArtifactScopeEnum
- All Implemented Interfaces:
Serializable
,Comparable<ArtifactScopeEnum>
Type safe reincarnation of Artifact scope. Also supplies the
DEFAULT_SCOPE
as well
as convenience method to deal with scope relationships.- Author:
- Oleg Gusakov
-
Enum Constant Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ArtifactScopeEnum
checkScope
(ArtifactScopeEnum scope) Helper method to simplify null processingboolean
encloses
(ArtifactScopeEnum scope) scope relationship function.getScope()
static ArtifactScopeEnum
Returns the enum constant of this type with the specified name.static ArtifactScopeEnum[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
compile
-
test
-
runtime
-
provided
-
system
-
runtime_plus_system
-
-
Field Details
-
DEFAULT_SCOPE
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 nameNullPointerException
- if the argument is null
-
checkScope
Helper method to simplify null processing -
getScope
- Returns:
- unsafe String representation of this scope.
-
encloses
scope relationship function. Used by the graph conflict resolution policies- Parameters:
scope
-- Returns:
- true is supplied scope is an inclusive sub-scope of current one.
-