public class ArtifactClusion
extends java.lang.Object
anded).| Constructor and Description |
|---|
ArtifactClusion()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static ArtifactClusion |
create(java.lang.String groupId,
java.lang.String artifactId)
Helper to create an instance.
|
java.lang.String |
getArtifactId()
Returns the artifactId to match.
|
java.lang.String |
getGroupId()
Returns the groupId to match.
|
MatchContext |
matches(Artifact artifact)
Checks if the clusion matches the artifact.
|
void |
setArtifactId(java.lang.String artifactId)
Sets the artifactId to match.
|
void |
setGroupId(java.lang.String groupId)
Sets the groupId to match.May be a regular expression.
|
java.lang.String |
toString() |
public static ArtifactClusion create(java.lang.String groupId, java.lang.String artifactId)
groupId - the groupId to match. May be a regular expression.artifactId - the artifactId to match. May be a regular expression.public java.lang.String getGroupId()
public void setGroupId(java.lang.String groupId)
groupId - the groupId to match.public java.lang.String getArtifactId()
public void setArtifactId(java.lang.String artifactId)
artifactId - the artifactId to match.public MatchContext matches(Artifact artifact)
artifact - the artifact to match.true if the
artifact matches groupId and artifactId, false
otherwise.public java.lang.String toString()
toString in class java.lang.Object