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)
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)
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 MavenResolutionFilterdependency - Candidate for inclusiondependenciesForResolution - Explicitly-declared dependencies for the current session, does not include those obtained via
transitivityMavenResolutionFilter.accepts(org.jboss.shrinkwrap.resolver.api.maven.coordinate.MavenDependency,
java.util.List)Copyright © 2013 JBoss by Red Hat. All Rights Reserved.