Package org.apache.maven.artifact
Enum Class ArtifactScopeEnum
- All Implemented Interfaces:
Serializable
,Comparable<ArtifactScopeEnum>
,Constable
Deprecated.
Type safe reincarnation of Artifact scope. Also supplies the
DEFAULT_SCOPE
as well
as convenience method to deal with scope relationships.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ArtifactScopeEnum
checkScope
(ArtifactScopeEnum scope) Deprecated.Helper method to simplify null processingboolean
encloses
(ArtifactScopeEnum scope) Deprecated.scope relationship function.getScope()
Deprecated.static ArtifactScopeEnum
Deprecated.Returns the enum constant of this class with the specified name.static ArtifactScopeEnum[]
values()
Deprecated.Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
compile
Deprecated. -
test
Deprecated. -
runtime
Deprecated. -
provided
Deprecated. -
system
Deprecated. -
runtime_plus_system
Deprecated.
-
-
Field Details
-
DEFAULT_SCOPE
Deprecated.
-
-
Method Details
-
values
Deprecated.Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Deprecated.Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
checkScope
Deprecated.Helper method to simplify null processing- Parameters:
scope
- a scope ornull
- Returns:
- the provided scope or DEFAULT_SCOPE
-
getScope
Deprecated.- Returns:
- unsafe String representation of this scope.
-
encloses
Deprecated.scope relationship function. Used by the graph conflict resolution policies- Parameters:
scope
- a scope- Returns:
- true is supplied scope is an inclusive sub-scope of current one.
-