public enum NonTransitiveFilter extends Enum<NonTransitiveFilter> implements MavenResolutionFilter
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
boolean |
accepts(MavenDependency dependency,
List<MavenDependency> dependenciesForResolution,
List<MavenDependency> dependencyAncestors)
Determines whether or not a
MavenDependency is accepted by this filter. |
static NonTransitiveFilter |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NonTransitiveFilter[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NonTransitiveFilter INSTANCE
public static NonTransitiveFilter[] values()
for (NonTransitiveFilter c : NonTransitiveFilter.values()) System.out.println(c);
public static NonTransitiveFilter valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean accepts(MavenDependency dependency, List<MavenDependency> dependenciesForResolution, List<MavenDependency> dependencyAncestors)
MavenDependency
is accepted by this filter. The filtering mechanism may
consult the project's explicitly-defined dependencies and dependencyManagement
(guaranteed immutable
and non-null) in determining whether filtering should be applied.accepts
in interface MavenResolutionFilter
dependency
- Candidate for inclusiondependenciesForResolution
- Explicitly-declared dependencies for the current session, does not include those obtained via
transitivitydependencyAncestors
- A list of ancestors of the candidate for inclusion.MavenDependency
is accepted by this filter.MavenResolutionFilter.accepts(org.jboss.shrinkwrap.resolver.api.maven.coordinate.MavenDependency,
java.util.List, java.util.List)
Copyright © 2022 JBoss by Red Hat. All rights reserved.