Package org.apache.maven.internal.impl
Class DefaultDependency
java.lang.Object
org.apache.maven.internal.impl.DefaultDependency
- All Implemented Interfaces:
- Artifact,- Dependency
- 
Constructor SummaryConstructorsConstructorDescriptionDefaultDependency(InternalSession session, org.eclipse.aether.graph.Dependency dependency) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleanThe artifactId of the artifact.The base version of the artifact.The classifier of the artifact.org.eclipse.aether.graph.DependencyThe file extension of the artifact.The groupId of the artifact.getScope()getType()The dependency type.The version of the artifact.inthashCode()booleanbooleanDetermines whether this artifact uses a snapshot version.key()Returns a unique identifier for this artifact.Creates aDependencyCoordinatebased on thisDependency.toString()
- 
Constructor Details- 
DefaultDependencypublic DefaultDependency(@Nonnull InternalSession session, @Nonnull org.eclipse.aether.graph.Dependency dependency) 
 
- 
- 
Method Details- 
keyDescription copied from interface:ArtifactReturns a unique identifier for this artifact. The identifier is composed of groupId, artifactId, extension, classifier, and version.
- 
getDependency
- 
getGroupIdDescription copied from interface:ArtifactThe groupId of the artifact.- Specified by:
- getGroupIdin interface- Artifact
- Returns:
- the groupId
 
- 
getArtifactIdDescription copied from interface:ArtifactThe artifactId of the artifact.- Specified by:
- getArtifactIdin interface- Artifact
- Returns:
- the artifactId
 
- 
getClassifierDescription copied from interface:ArtifactThe classifier of the artifact.- Specified by:
- getClassifierin interface- Artifact
- Returns:
- the classifier or an empty string if none, never null
 
- 
getVersionDescription copied from interface:ArtifactThe version of the artifact.- Specified by:
- getVersionin interface- Artifact
- Returns:
- the version
 
- 
getBaseVersionDescription copied from interface:ArtifactThe base version of the artifact.- Specified by:
- getBaseVersionin interface- Artifact
- Returns:
- the version
 
- 
getExtensionDescription copied from interface:ArtifactThe file extension of the artifact.- Specified by:
- getExtensionin interface- Artifact
- Returns:
- the extension
 
- 
getTypeDescription copied from interface:DependencyThe dependency type.- Specified by:
- getTypein interface- Dependency
- Returns:
- the dependency type, never null
 
- 
isSnapshotpublic boolean isSnapshot()Description copied from interface:ArtifactDetermines whether this artifact uses a snapshot version.- Specified by:
- isSnapshotin interface- Artifact
- Returns:
- trueif the artifact is a snapshot,- falseotherwise
- See Also:
 
- 
getScope- Specified by:
- getScopein interface- Dependency
 
- 
isOptional- Specified by:
- isOptionalin interface- Dependency
 
- 
toCoordinateDescription copied from interface:DependencyCreates aDependencyCoordinatebased on thisDependency.- Specified by:
- toCoordinatein interface- Artifact
- Specified by:
- toCoordinatein interface- Dependency
- Returns:
- a DependencyCoordinate
- See Also:
 
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
 
-