public class PatternIncludesArtifactFilter extends Object implements org.apache.maven.artifact.resolver.filter.ArtifactFilter, StatisticsReportingArtifactFilter
StrictPatternIncludesArtifactFilter| Constructor and Description |
|---|
PatternIncludesArtifactFilter(Collection<String> patterns) |
PatternIncludesArtifactFilter(Collection<String> patterns,
boolean actTransitively) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addFilteredArtifactId(String artifactId) |
protected String |
getFilterDescription() |
protected String |
getPatternsAsString() |
boolean |
hasMissedCriteria() |
boolean |
include(org.apache.maven.artifact.Artifact artifact) |
protected boolean |
patternMatches(org.apache.maven.artifact.Artifact artifact) |
protected Boolean |
positiveMatch(org.apache.maven.artifact.Artifact artifact) |
void |
reportFilteredArtifacts(org.codehaus.plexus.logging.Logger logger) |
void |
reportMissedCriteria(org.codehaus.plexus.logging.Logger logger) |
String |
toString() |
public PatternIncludesArtifactFilter(Collection<String> patterns)
patterns - The pattern to be used.public PatternIncludesArtifactFilter(Collection<String> patterns, boolean actTransitively)
patterns - The pattern to be used.actTransitively - transitive yes/no.public boolean include(org.apache.maven.artifact.Artifact artifact)
include in interface org.apache.maven.artifact.resolver.filter.ArtifactFilterprotected boolean patternMatches(org.apache.maven.artifact.Artifact artifact)
artifact - to check for.protected void addFilteredArtifactId(String artifactId)
artifactId - add artifact to the filtered artifacts list.protected Boolean positiveMatch(org.apache.maven.artifact.Artifact artifact)
artifact - check for positive match.public void reportMissedCriteria(org.codehaus.plexus.logging.Logger logger)
reportMissedCriteria in interface StatisticsReportingArtifactFilterlogger - The logger.protected String getPatternsAsString()
protected String getFilterDescription()
public void reportFilteredArtifacts(org.codehaus.plexus.logging.Logger logger)
reportFilteredArtifacts in interface StatisticsReportingArtifactFilterlogger - The logger.public boolean hasMissedCriteria()
hasMissedCriteria in interface StatisticsReportingArtifactFiltertrue if missed cireteria false otherwise.Copyright © 2002–2019 The Apache Software Foundation. All rights reserved.