org.pf.tools.cda.base.model
Class ClassPackageDependency

java.lang.Object
  extended by org.pf.tools.cda.base.model.AnalyzableElementDependency<ClassPackage,ClassPackage>
      extended by org.pf.tools.cda.base.model.ClassPackageDependency
All Implemented Interfaces:
IDependency<ClassPackage,ClassPackage>, IObjectProperties

public class ClassPackageDependency
extends AnalyzableElementDependency<ClassPackage,ClassPackage>

Represents the dependency of one package (source) to another package (target).

Version:
1.0
Author:
M.Duchrow

Field Summary
 
Fields inherited from class org.pf.tools.cda.base.model.AnalyzableElementDependency
TXT_EXTENDS, TXT_IMPLEMENTS, TXT_NEEDS, TXT_USES
 
Constructor Summary
ClassPackageDependency(ClassPackage fromPackage, ClassPackage toPackage)
          Initialize the new instance with the source and target package.
 
Method Summary
 ClassInformationDependency[] getClassDependencies()
          Returns an array of class dependencies that cause the dependency of the two packages represented by this object.
 ClassPackage getSource()
           
 ClassPackage getSourceElement()
          Returns the element that depends on the target element
 ClassPackage getTarget()
           
 ClassPackage getTargetElement()
          Returns the element the source element depends on
 
Methods inherited from class org.pf.tools.cda.base.model.AnalyzableElementDependency
getDependencyClassification, getDependencyType, getProperty, getPropertyNames, getWorkset, setProperty, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClassPackageDependency

public ClassPackageDependency(ClassPackage fromPackage,
                              ClassPackage toPackage)
Initialize the new instance with the source and target package.

Method Detail

getSource

public ClassPackage getSource()

getTarget

public ClassPackage getTarget()

getClassDependencies

public ClassInformationDependency[] getClassDependencies()
Returns an array of class dependencies that cause the dependency of the two packages represented by this object.

Overrides:
getClassDependencies in class AnalyzableElementDependency<ClassPackage,ClassPackage>
Returns:
returns an array of dependencies (never null)

getSourceElement

public ClassPackage getSourceElement()
Returns the element that depends on the target element

Specified by:
getSourceElement in interface IDependency<ClassPackage,ClassPackage>
Specified by:
getSourceElement in class AnalyzableElementDependency<ClassPackage,ClassPackage>

getTargetElement

public ClassPackage getTargetElement()
Returns the element the source element depends on

Specified by:
getTargetElement in interface IDependency<ClassPackage,ClassPackage>
Specified by:
getTargetElement in class AnalyzableElementDependency<ClassPackage,ClassPackage>