public class PatternInclusionsFilter extends Object implements TransformableFilter
[groupId]:[artifactId]:[extension]:[version] [groupId]:[artifactId]:[extension]:[classifier]:[version]
Where each pattern segment is optional and supports full and partial *
wildcards. An empty pattern
segment is treated as an implicit wildcard. Version can be a range in case a VersionScheme
is specified.
For example, org.apache.*
would match all artifacts whose group id started with
org.apache.
, and :::*-SNAPSHOT
would match all snapshot artifacts.
PatternInclusionsDependencyFilter
,
VersionScheme
Constructor and Description |
---|
PatternInclusionsFilter(Collection<String> includes)
The default constructor specifying a collection of pattern based keys which must be included.
|
Modifier and Type | Method and Description |
---|---|
Collection<String> |
getIncludes()
Get the includes
|
<T> T |
transform(FilterTransformer<T> transformer)
Subclasses should include the following code:
|
public PatternInclusionsFilter(Collection<String> includes)
includes
- the includespublic final Collection<String> getIncludes()
public <T> T transform(FilterTransformer<T> transformer)
@Override public abstract <T> T transform( FilterTransformer<T> transformer ) { return transformer.transform( this ); }Transform this filter to a tool specific implementation
transform
in interface TransformableFilter
T
- the interface of the tool specific filtertransformer
- the tool specific transformer, may not be null
null
Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.