Package org.apache.maven.artifact
Enum ArtifactScopeEnum
- All Implemented Interfaces:
Serializable
,Comparable<ArtifactScopeEnum>
,java.lang.constant.Constable
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
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final ArtifactScopeEnum[][][]
static final ArtifactScopeEnum
private int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ArtifactScopeEnum
checkScope
(ArtifactScopeEnum scope) Helper method to simplify null processingboolean
encloses
(ArtifactScopeEnum scope) scope relationship function.(package private) int
getId()
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
-
id
private int id -
COMPLIANCY_SETS
-
-
Constructor Details
-
ArtifactScopeEnum
private ArtifactScopeEnum(int id)
-
-
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
-
getId
int getId() -
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.
-