Package org.eclipse.aether.graph
Class Exclusion
- java.lang.Object
-
- org.eclipse.aether.graph.Exclusion
-
public final class Exclusion extends Object
An exclusion of one or more transitive dependencies. Note: Instances of this class are immutable and the exposed mutators return new objects rather than changing the current instance.- See Also:
Dependency.getExclusions()
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getArtifactId()
Gets the artifact identifier for artifacts to exclude.String
getClassifier()
Gets the classifier for artifacts to exclude.String
getExtension()
Gets the file extension for artifacts to exclude.String
getGroupId()
Gets the group identifier for artifacts to exclude.int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
Exclusion
public Exclusion(String groupId, String artifactId, String classifier, String extension)
Creates an exclusion for artifacts with the specified coordinates.- Parameters:
groupId
- The group identifier, may benull
.artifactId
- The artifact identifier, may benull
.classifier
- The classifier, may benull
.extension
- The file extension, may benull
.
-
-
Method Detail
-
getGroupId
public String getGroupId()
Gets the group identifier for artifacts to exclude.- Returns:
- The group identifier, never
null
.
-
getArtifactId
public String getArtifactId()
Gets the artifact identifier for artifacts to exclude.- Returns:
- The artifact identifier, never
null
.
-
getClassifier
public String getClassifier()
Gets the classifier for artifacts to exclude.- Returns:
- The classifier, never
null
.
-
getExtension
public String getExtension()
Gets the file extension for artifacts to exclude.- Returns:
- The file extension of artifacts to exclude, never
null
.
-
-