org.apache.maven.repository.metadata
Class MetadataGraphEdge

java.lang.Object
  extended by 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

Author:
Oleg Gusakov

Constructor Summary
MetadataGraphEdge(String version, boolean resolved, ArtifactScopeEnum scope, String artifactUri, int depth, int pomOrder)
           
 
Method Summary
 boolean equals(Object o)
          used to eliminate exact duplicates in the edge list
 String getArtifactUri()
           
 int getDepth()
           
 int getPomOrder()
           
 ArtifactScopeEnum getScope()
           
 MetadataGraphVertex getSource()
           
 MetadataGraphVertex getTarget()
           
 String getVersion()
           
 boolean isResolved()
           
 void 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)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MetadataGraphEdge

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

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


Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.