Class MetadataGraphEdge
java.lang.Object
org.apache.maven.repository.metadata.MetadataGraphEdge
metadata graph edge - combination of version, scope and depth define
an edge in the graph
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) String
(package private) int
(package private) int
(package private) boolean
(package private) ArtifactScopeEnum
(package private) MetadataGraphVertex
capturing where this link came from and where it is linked to.(package private) MetadataGraphVertex
(package private) String
-
Constructor Summary
ConstructorsConstructorDescriptionMetadataGraphEdge
(String version, boolean resolved, ArtifactScopeEnum scope, String artifactUri, int depth, int pomOrder) -
Method Summary
Modifier and TypeMethodDescriptionboolean
used to eliminate exact duplicates in the edge listint
getDepth()
int
getScope()
boolean
private static boolean
objectsEqual
(Object o1, Object o2) helper for equalsvoid
setArtifactUri
(String artifactUri) void
setDepth
(int depth) void
setPomOrder
(int pomOrder) void
setResolved
(boolean resolved) void
setScope
(ArtifactScopeEnum scope) void
setSource
(MetadataGraphVertex source) void
setTarget
(MetadataGraphVertex target) void
setVersion
(String version) toString()
-
Field Details
-
version
String version -
scope
ArtifactScopeEnum scope -
depth
int depth -
pomOrder
int pomOrder -
resolved
boolean resolved -
artifactUri
String artifactUri -
source
MetadataGraphVertex sourcecapturing where this link came from and where it is linked to. In the first implementation only source used for explanatory function -
target
MetadataGraphVertex target
-
-
Constructor Details
-
MetadataGraphEdge
public MetadataGraphEdge(String version, boolean resolved, ArtifactScopeEnum scope, String artifactUri, int depth, int pomOrder)
-
-
Method Details
-
objectsEqual
helper for equals -
equals
used to eliminate exact duplicates in the edge list -
getVersion
-
setVersion
-
getScope
-
setScope
-
getDepth
public int getDepth() -
setDepth
public void setDepth(int depth) -
isResolved
public boolean isResolved() -
setResolved
public void setResolved(boolean resolved) -
getPomOrder
public int getPomOrder() -
setPomOrder
public void setPomOrder(int pomOrder) -
getArtifactUri
-
setArtifactUri
-
getSource
-
setSource
-
getTarget
-
setTarget
-
toString
-