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
ConstructorsConstructorDescriptionDefaultArtifactCoordinates(InternalSession session, org.eclipse.aether.artifact.Artifact coordinates) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the identifier of the artifact.Returns the classifier of the artifact.org.eclipse.aether.artifact.ArtifactReturns 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.inthashCode()toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:ArtifactCoordinatesReturns the group identifier of the artifact.- Specified by:
getGroupIdin interfaceArtifactCoordinates- Returns:
- the group identifier of the artifact
-
getArtifactId
Description copied from interface:ArtifactCoordinatesReturns the identifier of the artifact.- Specified by:
getArtifactIdin interfaceArtifactCoordinates- Returns:
- the identifier of the artifact
-
getVersionConstraint
Description copied from interface:ArtifactCoordinatesReturns the specific version, range of versions or meta-version of the artifact. A meta-version is a version suffixed with theSNAPSHOTkeyword.- Specified by:
getVersionConstraintin interfaceArtifactCoordinates- Returns:
- the specific version, range of versions or meta-version of the artifact
-
getExtension
Description copied from interface:ArtifactCoordinatesReturns the file extension of the artifact. The dot separator is not included in the returned string.- Specified by:
getExtensionin interfaceArtifactCoordinates- Returns:
- the file extension or an empty string if none, never
null
-
getClassifier
Description copied from interface:ArtifactCoordinatesReturns the classifier of the artifact.- Specified by:
getClassifierin interfaceArtifactCoordinates- Returns:
- the classifier or an empty string if none, never
null
-
equals
-
hashCode
public int hashCode() -
toString
-