Class AbstractArtifactFeatureFilter
java.lang.Object
org.apache.maven.shared.artifact.filter.collection.AbstractArtifactsFilter
org.apache.maven.shared.artifact.filter.collection.AbstractArtifactFeatureFilter
- All Implemented Interfaces:
ArtifactsFilter
- Direct Known Subclasses:
ArtifactIdFilter, ClassifierFilter, GroupIdFilter, TypeFilter
This is the common base class of ClassifierFilter and TypeFilter
- Author:
- Richard van der Hoff
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractArtifactFeatureFilter(String include, String exclude) Constructor for AbstractArtifactFeatureFilter. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancompareFeatures(String lhs, String rhs) Allows Feature comparison to be customizedSet<org.apache.maven.artifact.Artifact> filter.protected abstract StringgetArtifactFeature(org.apache.maven.artifact.Artifact artifact) Should return the type or classifier of the given artifact, so that we can filter itGetter for the fieldexcludes.Getter for the fieldincludes.voidsetExcludes(String excludeString) Setter for the fieldexcludes.voidsetIncludes(String includeString) Setter for the fieldincludes.Methods inherited from class AbstractArtifactsFilter
isArtifactIncluded
-
Constructor Details
-
AbstractArtifactFeatureFilter
-
-
Method Details
-
filter
-
getArtifactFeature
Should return the type or classifier of the given artifact, so that we can filter it- Parameters:
artifact- artifact to return type or classifier of- Returns:
- type or classifier
-
setExcludes
Setter for the field
excludes.- Parameters:
excludeString- comma separated list with excludes.
-
setIncludes
Setter for the field
includes.- Parameters:
includeString- comma separated list with includes.
-
getExcludes
-
getIncludes
-
compareFeatures
-