org.apache.maven.artifact.resolver
Class ResolutionNode

java.lang.Object
  extended by org.apache.maven.artifact.resolver.ResolutionNode

public class ResolutionNode
extends Object


Constructor Summary
ResolutionNode(Artifact artifact, List<ArtifactRepository> remoteRepositories)
           
ResolutionNode(Artifact artifact, List<ArtifactRepository> remoteRepositories, ResolutionNode parent)
           
 
Method Summary
 void addDependencies(Set<Artifact> artifacts, List<ArtifactRepository> remoteRepositories, ArtifactFilter filter)
           
 void disable()
           
 void enable()
           
 boolean filterTrail(ArtifactFilter filter)
           
 Artifact getArtifact()
           
 Iterator<ResolutionNode> getChildrenIterator()
           
 List<String> getDependencyTrail()
           
 int getDepth()
           
 Object getKey()
           
 List<ArtifactRepository> getRemoteRepositories()
           
 boolean isActive()
           
 boolean isChildOfRootNode()
          Test whether the node is direct or transitive dependency.
 boolean isResolved()
           
 void setArtifact(Artifact artifact)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResolutionNode

public ResolutionNode(Artifact artifact,
                      List<ArtifactRepository> remoteRepositories)

ResolutionNode

public ResolutionNode(Artifact artifact,
                      List<ArtifactRepository> remoteRepositories,
                      ResolutionNode parent)
Method Detail

getArtifact

public Artifact getArtifact()

getKey

public Object getKey()

addDependencies

public void addDependencies(Set<Artifact> artifacts,
                            List<ArtifactRepository> remoteRepositories,
                            ArtifactFilter filter)
                     throws CyclicDependencyException,
                            OverConstrainedVersionException
Throws:
CyclicDependencyException
OverConstrainedVersionException

getDependencyTrail

public List<String> getDependencyTrail()
                                throws OverConstrainedVersionException
Returns:
List < String > with artifact ids
Throws:
OverConstrainedVersionException

isResolved

public boolean isResolved()

isChildOfRootNode

public boolean isChildOfRootNode()
Test whether the node is direct or transitive dependency.


getChildrenIterator

public Iterator<ResolutionNode> getChildrenIterator()

getDepth

public int getDepth()

getRemoteRepositories

public List<ArtifactRepository> getRemoteRepositories()

isActive

public boolean isActive()

enable

public void enable()

disable

public void disable()

filterTrail

public boolean filterTrail(ArtifactFilter filter)
                    throws OverConstrainedVersionException
Throws:
OverConstrainedVersionException

toString

public String toString()
Overrides:
toString in class Object

setArtifact

public void setArtifact(Artifact artifact)


Copyright © 2001–2013 The Apache Software Foundation. All rights reserved.