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.- Author:
- Oleg Gusakov
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum Constants
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionstatic ArtifactScopeEnumcheckScope(ArtifactScopeEnum scope) Helper method to simplify null processingbooleanencloses(ArtifactScopeEnum scope) scope relationship function.getScope()static ArtifactScopeEnumReturns 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- 
valuesReturns 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
 
- 
valueOfReturns 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
- NullPointerException- if the argument is null
 
- 
checkScopeHelper method to simplify null processing- Parameters:
- scope- a scope or- null
- Returns:
- the provided scope or DEFAULT_SCOPE
 
- 
getScope- Returns:
- unsafe String representation of this scope.
 
- 
enclosesscope 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.
 
 
-