Class MetadataGraphEdge

java.lang.Object
org.apache.maven.repository.metadata.MetadataGraphEdge

public class MetadataGraphEdge extends Object
metadata graph edge - combination of version, scope and depth define an edge in the graph
  • Field Details

    • version

      String version
    • scope

    • depth

      int depth
    • pomOrder

      int pomOrder
    • resolved

      boolean resolved
    • artifactUri

      String artifactUri
    • source

      capturing where this link came from and where it is linked to. In the first implementation only source used for explanatory function
    • target

  • Constructor Details

    • MetadataGraphEdge

      public MetadataGraphEdge(String version, boolean resolved, ArtifactScopeEnum scope, String artifactUri, int depth, int pomOrder)
  • Method Details

    • objectsEqual

      private static boolean objectsEqual(Object o1, Object o2)
      helper for equals
    • equals

      public boolean equals(Object o)
      used to eliminate exact duplicates in the edge list
      Overrides:
      equals in class Object
    • getVersion

      public String getVersion()
    • setVersion

      public void setVersion(String version)
    • getScope

      public ArtifactScopeEnum getScope()
    • setScope

      public void setScope(ArtifactScopeEnum scope)
    • 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

      public String getArtifactUri()
    • setArtifactUri

      public void setArtifactUri(String artifactUri)
    • getSource

      public MetadataGraphVertex getSource()
    • setSource

      public void setSource(MetadataGraphVertex source)
    • getTarget

      public MetadataGraphVertex getTarget()
    • setTarget

      public void setTarget(MetadataGraphVertex target)
    • toString

      public String toString()
      Overrides:
      toString in class Object