org.apache.maven.shared.artifact.filter.collection
public abstract class AbstractArtifactFeatureFilter extends AbstractArtifactsFilter
Constructor and Description |
---|
AbstractArtifactFeatureFilter(java.lang.String include,
java.lang.String exclude) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
compareFeatures(java.lang.String lhs,
java.lang.String rhs)
Allows Feature comparison to be customized
|
java.util.Set |
filter(java.util.Set artifacts)
This function determines if filtering needs to be performed.
|
protected abstract java.lang.String |
getArtifactFeature(org.apache.maven.artifact.Artifact artifact)
Should return the type or classifier of the given artifact, so that we can filter it
|
java.util.List |
getExcludes() |
java.util.List |
getIncludes() |
void |
setExcludes(java.lang.String excludeString) |
void |
setIncludes(java.lang.String includeString) |
isArtifactIncluded
public AbstractArtifactFeatureFilter(java.lang.String include, java.lang.String exclude)
public java.util.Set filter(java.util.Set artifacts)
dependencies
- the set of dependencies to filter.protected abstract java.lang.String getArtifactFeature(org.apache.maven.artifact.Artifact artifact)
artifact
- artifact to return type or classifier ofpublic void setExcludes(java.lang.String excludeString)
public void setIncludes(java.lang.String includeString)
public java.util.List getExcludes()
public java.util.List getIncludes()
protected boolean compareFeatures(java.lang.String lhs, java.lang.String rhs)
lhs
- String artifact's featurerhs
- String feature from exclude or include listCopyright © 2014. All Rights Reserved.