org.jadira.dependencynavigator.model
Class Artifact

Package class diagram package Artifact
java.lang.Object
  extended by org.jadira.dependencynavigator.model.Artifact
Direct Known Subclasses:
LeafDependency, PomFile, SimpleDependancy

public abstract class Artifact
extends Object


Field Summary
static String DEFAULT_SCOPE
           
static int SELECTED_NONE
           
static int SELECTED_PATH
           
static int SELECTED_PRINCIPLE
           
 
Constructor Summary
protected Artifact(Artifact parent, String groupId, String artifactId, String version, String scope)
           
 
Method Summary
 void addExclusion(String groupId, String artifactId)
           
abstract  int dependencyCount()
           
 boolean equals(Object obj)
           
 String getArtifactId()
           
abstract  List<Artifact> getDependencies()
           
 String getGroupId()
           
 String getId()
           
 Artifact getParent()
           
 String getScope()
           
 int getSelected()
           
 String getVersion()
           
 int hashCode()
           
 boolean isExcluded(String groupId, String artifactId, Stack<Artifact> path)
           
abstract  boolean isLeaf()
           
 void select(int state)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_SCOPE

public static final String DEFAULT_SCOPE
See Also:
Constant Field Values

SELECTED_NONE

public static final int SELECTED_NONE
See Also:
Constant Field Values

SELECTED_PATH

public static final int SELECTED_PATH
See Also:
Constant Field Values

SELECTED_PRINCIPLE

public static final int SELECTED_PRINCIPLE
See Also:
Constant Field Values
Constructor Detail

Artifact

protected Artifact(Artifact parent,
                   String groupId,
                   String artifactId,
                   String version,
                   String scope)
            throws ArtifactInitialisationException
Throws:
ArtifactInitialisationException
Method Detail

addExclusion

public void addExclusion(String groupId,
                         String artifactId)

isExcluded

public boolean isExcluded(String groupId,
                          String artifactId,
                          Stack<Artifact> path)

isLeaf

public abstract boolean isLeaf()

getDependencies

public abstract List<Artifact> getDependencies()

dependencyCount

public abstract int dependencyCount()

getArtifactId

public String getArtifactId()

getGroupId

public String getGroupId()

getScope

public String getScope()

getVersion

public String getVersion()

getParent

public Artifact getParent()

getSelected

public int getSelected()

select

public void select(int state)

getId

public String getId()

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010 Jadira Systems. All Rights Reserved.