as well
as convenience method to deal with scope relationships.
- Author:
- Oleg Gusakov
compile
public static final ArtifactScopeEnum compile
test
public static final ArtifactScopeEnum test
runtime
public static final ArtifactScopeEnum runtime
provided
public static final ArtifactScopeEnum provided
system
public static final ArtifactScopeEnum system
runtime_plus_system
public static final ArtifactScopeEnum runtime_plus_system
DEFAULT_SCOPE
public static final ArtifactScopeEnum DEFAULT_SCOPE
values
public static ArtifactScopeEnum[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (ArtifactScopeEnum c : ArtifactScopeEnum.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ArtifactScopeEnum valueOf(String name)
- 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 name
NullPointerException
- if the argument is null
checkScope
public static final ArtifactScopeEnum checkScope(ArtifactScopeEnum scope)
- Helper method to simplify null processing
- Returns:
getScope
public String getScope()
- Returns:
- unsafe String representation of this scope.
encloses
public boolean encloses(ArtifactScopeEnum scope)
- 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.
Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.