org.pf.tools.cda.core.dependency.analyzer.model
Class DependencyClassNode

java.lang.Object
  extended by org.pf.tools.cda.core.dependency.analyzer.model.ProcessingState
      extended by org.pf.tools.cda.core.dependency.analyzer.model.DependencyNode
          extended by org.pf.tools.cda.core.dependency.analyzer.model.DependencyClassNode
All Implemented Interfaces:
java.lang.Comparable

public class DependencyClassNode
extends DependencyNode
implements java.lang.Comparable

A node of this kind represents a class with references to all class nodes it directly depends on (prerequisites) and references to all class nodes it is an dependant of in the context of the current analyzing process.

Version:
1.0
Author:
Manfred Duchrow

Constructor Summary
DependencyClassNode(ClassInformation classInfo)
          Initialize the new instance with default values.
 
Method Summary
 int compareTo(java.lang.Object obj)
           
 boolean equals(java.lang.Object obj)
           
 ClassInformation getClassInfo()
           
 java.lang.String getClassName()
          Returns the name of the class this node represents
 ClassPackage getClassPackage()
          Returns the package this class belongs to.
 ClassInformation[] getDirectlyReferredClasses()
          Returns an array of class information objects containing all classes that this node's class depends on directly.
 java.lang.String getJustClassName()
          Returns the name of the associated class without package prefix
 java.lang.String getPackageName()
          Returns the package name the associated class belongs to
 Workset getWorkset()
          Returns the workset in which this class information is currently hold
 int hashCode()
           
 boolean holdsClassInfo(ClassInformation classInformation)
          Returns true if the given class information is equal to the one hold by this node.
 DependencyClassNode[] prerequisites()
          Returns all nodes that are prerequisites of this node.
 java.lang.String toString()
           
 
Methods inherited from class org.pf.tools.cda.core.dependency.analyzer.model.DependencyNode
addDependant, addPrerequisite, addPrerequisiteWithBackLink
 
Methods inherited from class org.pf.tools.cda.core.dependency.analyzer.model.ProcessingState
isDone, isInProgress, isNew, setDone, setInProgress, setNew
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DependencyClassNode

public DependencyClassNode(ClassInformation classInfo)
Initialize the new instance with default values.

Method Detail

getClassInfo

public ClassInformation getClassInfo()

getClassName

public java.lang.String getClassName()
Returns the name of the class this node represents


getJustClassName

public java.lang.String getJustClassName()
Returns the name of the associated class without package prefix


getClassPackage

public ClassPackage getClassPackage()
Returns the package this class belongs to.


getPackageName

public java.lang.String getPackageName()
Returns the package name the associated class belongs to


getDirectlyReferredClasses

public ClassInformation[] getDirectlyReferredClasses()
Returns an array of class information objects containing all classes that this node's class depends on directly.


prerequisites

public DependencyClassNode[] prerequisites()
Returns all nodes that are prerequisites of this node.


holdsClassInfo

public boolean holdsClassInfo(ClassInformation classInformation)
Returns true if the given class information is equal to the one hold by this node.


equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

compareTo

public int compareTo(java.lang.Object obj)
Specified by:
compareTo in interface java.lang.Comparable

getWorkset

public Workset getWorkset()
Returns the workset in which this class information is currently hold


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object