Class GroupIdFilter
- java.lang.Object
-
- org.apache.maven.shared.artifact.filter.collection.AbstractArtifactsFilter
-
- org.apache.maven.shared.artifact.filter.collection.AbstractArtifactFeatureFilter
-
- org.apache.maven.shared.artifact.filter.collection.GroupIdFilter
-
- All Implemented Interfaces:
ArtifactsFilter
public class GroupIdFilter extends AbstractArtifactFeatureFilter
Filter on GroupId Name.- Since:
- 2.0
- Version:
- $Id$
-
-
Constructor Summary
Constructors Constructor Description GroupIdFilter(java.lang.String include, java.lang.String exclude)
Construction will setup the super call with a filtertype of 'GroupId'
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
compareFeatures(java.lang.String lhs, java.lang.String rhs)
Allows Feature comparison to be customizedprotected 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-
Methods inherited from class org.apache.maven.shared.artifact.filter.collection.AbstractArtifactFeatureFilter
filter, getExcludes, getIncludes, setExcludes, setIncludes
-
Methods inherited from class org.apache.maven.shared.artifact.filter.collection.AbstractArtifactsFilter
isArtifactIncluded
-
-
-
-
Constructor Detail
-
GroupIdFilter
public GroupIdFilter(java.lang.String include, java.lang.String exclude)
Construction will setup the super call with a filtertype of 'GroupId'- Parameters:
include
- comma separated list of groupIds to include, may benull
exclude
- comma separated list of groupIds to exclude, may benull
-
-
Method Detail
-
getArtifactFeature
protected java.lang.String getArtifactFeature(org.apache.maven.artifact.Artifact artifact)
Description copied from class:AbstractArtifactFeatureFilter
Should return the type or classifier of the given artifact, so that we can filter it- Specified by:
getArtifactFeature
in classAbstractArtifactFeatureFilter
- Parameters:
artifact
- artifact to return type or classifier of- Returns:
- type or classifier
-
compareFeatures
protected boolean compareFeatures(java.lang.String lhs, java.lang.String rhs)
Description copied from class:AbstractArtifactFeatureFilter
Allows Feature comparison to be customized- Overrides:
compareFeatures
in classAbstractArtifactFeatureFilter
- Parameters:
lhs
- String artifact's featurerhs
- String feature from exclude or include list- Returns:
- boolean true if features match
-
-