Class ExclusionsFilter
- java.lang.Object
-
- org.apache.maven.shared.artifact.filter.resolve.ExclusionsFilter
-
- All Implemented Interfaces:
TransformableFilter
public class ExclusionsFilter extends java.lang.Object implements TransformableFilter
A simple filter to exclude artifacts based on either artifact id or group id and artifact id.- Since:
- 3.0
- Author:
- Robert Scholte
- See Also:
ExclusionsDependencyFilter
,ExclusionsDependencyFilter
-
-
Constructor Summary
Constructors Constructor Description ExclusionsFilter(java.util.Collection<java.lang.String> excludes)
The default constructor specifying a collection of keys which must be excluded.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<java.lang.String>
getExcludes()
<T> T
transform(FilterTransformer<T> transformer)
Transform this filter to a tool specific implementation
-
-
-
Constructor Detail
-
ExclusionsFilter
public ExclusionsFilter(java.util.Collection<java.lang.String> excludes)
The default constructor specifying a collection of keys which must be excluded.- Parameters:
excludes
- the keys to exclude, may not benull
- See Also:
Artifact.getDependencyConflictId()
-
-
Method Detail
-
getExcludes
public final java.util.Collection<java.lang.String> getExcludes()
- Returns:
- The list of excludes.
-
transform
public <T> T transform(FilterTransformer<T> transformer)
Transform this filter to a tool specific implementation- Specified by:
transform
in interfaceTransformableFilter
- Type Parameters:
T
- the interface of the tool specific filter- Parameters:
transformer
- the transformer, may not benull
- Returns:
- the transformed value, never
null
-
-