public class PatternIncludesArtifactFilter extends Object implements 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(Artifact artifact) |
protected boolean |
patternMatches(Artifact artifact) |
protected Boolean |
positiveMatch(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(Artifact artifact)
include
in interface ArtifactFilter
protected boolean patternMatches(Artifact artifact)
artifact
- to check for.protected void addFilteredArtifactId(String artifactId)
artifactId
- add artifact to the filtered artifacts list.protected Boolean positiveMatch(Artifact artifact)
artifact
- check for positive match.public void reportMissedCriteria(org.codehaus.plexus.logging.Logger logger)
reportMissedCriteria
in interface StatisticsReportingArtifactFilter
logger
- The logger.protected String getPatternsAsString()
protected String getFilterDescription()
public void reportFilteredArtifacts(org.codehaus.plexus.logging.Logger logger)
reportFilteredArtifacts
in interface StatisticsReportingArtifactFilter
logger
- The logger.public boolean hasMissedCriteria()
hasMissedCriteria
in interface StatisticsReportingArtifactFilter
true
if missed cireteria false
otherwise.Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.