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) MetadataGraphVertexcapturing 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 TypeMethodDescriptionbooleanused to eliminate exact duplicates in the edge listintgetDepth()intgetScope()booleanprivate static booleanobjectsEqual(Object o1, Object o2) helper for equalsvoidsetArtifactUri(String artifactUri) voidsetDepth(int depth) voidsetPomOrder(int pomOrder) voidsetResolved(boolean resolved) voidsetScope(ArtifactScopeEnum scope) voidsetSource(MetadataGraphVertex source) voidsetTarget(MetadataGraphVertex target) voidsetVersion(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
-