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

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

public class ClassContainerDependency
extends AnalyzableElementDependency<ClassContainer,ClassContainer>

Represents the dependency of one container (source) to another container (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
ClassContainerDependency(ClassContainer fromContainer, ClassContainer toContainer)
          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.
 ClassContainer getSource()
           
 ClassContainer getSourceElement()
          Returns the element that depends on the target element
 ClassContainer getTarget()
           
 ClassContainer 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

ClassContainerDependency

public ClassContainerDependency(ClassContainer fromContainer,
                                ClassContainer toContainer)
Initialize the new instance with the source and target package.

Method Detail

getSource

public ClassContainer getSource()

getTarget

public ClassContainer getTarget()

getSourceElement

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

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

getTargetElement

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

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

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<ClassContainer,ClassContainer>
Returns:
returns an array of dependencies (never null)