Package org.apache.maven.internal.impl
Class DefaultArtifactCoordinates
java.lang.Object
org.apache.maven.internal.impl.DefaultArtifactCoordinates
- All Implemented Interfaces:
ArtifactCoordinates
A wrapper class around a maven resolver artifact.
-
Constructor Summary
ConstructorDescriptionDefaultArtifactCoordinates
(InternalSession session, org.eclipse.aether.artifact.Artifact coordinates) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the identifier of the artifact.Returns the classifier of the artifact.org.eclipse.aether.artifact.Artifact
Returns the file extension of the artifact.Returns the group identifier of the artifact.Returns the specific version, range of versions or meta-version of the artifact.int
hashCode()
toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.maven.api.ArtifactCoordinates
getId
-
Constructor Details
-
DefaultArtifactCoordinates
public DefaultArtifactCoordinates(@Nonnull InternalSession session, @Nonnull org.eclipse.aether.artifact.Artifact coordinates)
-
-
Method Details
-
getCoordinates
public org.eclipse.aether.artifact.Artifact getCoordinates() -
getGroupId
Description copied from interface:ArtifactCoordinates
Returns the group identifier of the artifact.- Specified by:
getGroupId
in interfaceArtifactCoordinates
- Returns:
- the group identifier of the artifact
-
getArtifactId
Description copied from interface:ArtifactCoordinates
Returns the identifier of the artifact.- Specified by:
getArtifactId
in interfaceArtifactCoordinates
- Returns:
- the identifier of the artifact
-
getVersionConstraint
Description copied from interface:ArtifactCoordinates
Returns the specific version, range of versions or meta-version of the artifact. A meta-version is a version suffixed with theSNAPSHOT
keyword.- Specified by:
getVersionConstraint
in interfaceArtifactCoordinates
- Returns:
- the specific version, range of versions or meta-version of the artifact
-
getExtension
Description copied from interface:ArtifactCoordinates
Returns the file extension of the artifact. The dot separator is not included in the returned string.- Specified by:
getExtension
in interfaceArtifactCoordinates
- Returns:
- the file extension or an empty string if none, never
null
-
getClassifier
Description copied from interface:ArtifactCoordinates
Returns the classifier of the artifact.- Specified by:
getClassifier
in interfaceArtifactCoordinates
- Returns:
- the classifier or an empty string if none, never
null
-
equals
-
hashCode
public int hashCode() -
toString
-