org.apache.maven.plugin.dependency.utils.filters
Class TransitivityFilter
java.lang.Object
org.apache.maven.plugin.dependency.utils.filters.AbstractArtifactsFilter
org.apache.maven.plugin.dependency.utils.filters.TransitivityFilter
- All Implemented Interfaces:
- ArtifactsFilter
public class TransitivityFilter
- extends AbstractArtifactsFilter
Constructor Summary |
TransitivityFilter(java.util.Set directDependencies,
boolean excludeTransitive)
|
Method Summary |
boolean |
artifactIsADirectDependency(org.apache.maven.artifact.Artifact artifact)
Compares the artifact to the list of dependencies to see if it is
directly included by this project |
java.util.Set |
filter(java.util.Set artifacts,
org.apache.maven.plugin.logging.Log log)
|
boolean |
isExcludeTransitive()
|
void |
setExcludeTransitive(boolean excludeTransitive)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransitivityFilter
public TransitivityFilter(java.util.Set directDependencies,
boolean excludeTransitive)
filter
public java.util.Set filter(java.util.Set artifacts,
org.apache.maven.plugin.logging.Log log)
artifactIsADirectDependency
public boolean artifactIsADirectDependency(org.apache.maven.artifact.Artifact artifact)
- Compares the artifact to the list of dependencies to see if it is
directly included by this project
- Parameters:
artifact
- representing the item to compare.
- Returns:
- true if artifact is a direct dependency
isExcludeTransitive
public boolean isExcludeTransitive()
- Returns:
- Returns the excludeTransitive.
setExcludeTransitive
public void setExcludeTransitive(boolean excludeTransitive)
- Parameters:
excludeTransitive
- The excludeTransitive to set.
Copyright © 2002-2009 Apache Software Foundation. All Rights Reserved.