|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.maven.shared.artifact.filter.AbstractStrictPatternArtifactFilter
public abstract class AbstractStrictPatternArtifactFilter
Filter to include or exclude artifacts from a list of patterns. The artifact pattern syntax is of the form:
[groupId]:[artifactId]:[type]:[version]
Where each pattern segment is optional and supports full and partial * wildcards. An empty pattern
segment is treated as an implicit wildcard.
For example, org.apache.* would match all artifacts whose group id started with
org.apache., and :::*-SNAPSHOT would match all snapshot artifacts.
| Field Summary | |
|---|---|
private boolean |
include
Whether this filter should include or exclude artifacts that match the patterns. |
private java.util.List |
patterns
The list of artifact patterns to match, as described above. |
| Constructor Summary | |
|---|---|
AbstractStrictPatternArtifactFilter(java.util.List patterns,
boolean include)
Creates a new filter that matches the specified artifact patterns and includes or excludes them according to the specified flag. |
|
| Method Summary | |
|---|---|
boolean |
include(org.apache.maven.artifact.Artifact artifact)
|
private boolean |
include(org.apache.maven.artifact.Artifact artifact,
java.lang.String pattern)
Gets whether the specified artifact matches the specified pattern. |
private boolean |
matches(java.lang.String token,
java.lang.String pattern)
Gets whether the specified token matches the specified pattern segment. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final java.util.List patterns
private final boolean include
| Constructor Detail |
|---|
public AbstractStrictPatternArtifactFilter(java.util.List patterns,
boolean include)
patterns - the list of artifact patterns to match, as described aboveinclude - true to include artifacts that match the patterns, or false to exclude
them| Method Detail |
|---|
public boolean include(org.apache.maven.artifact.Artifact artifact)
include in interface org.apache.maven.artifact.resolver.filter.ArtifactFilter
private boolean include(org.apache.maven.artifact.Artifact artifact,
java.lang.String pattern)
artifact - the artifact to checkpattern - the pattern to match, as defined above
true if the specified artifact is matched by the specified pattern
private boolean matches(java.lang.String token,
java.lang.String pattern)
token - the token to checkpattern - the pattern segment to match, as defined above
true if the specified token is matched by the specified pattern segment
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||