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

java.lang.Object
  extended by org.pf.tools.cda.core.dependency.analyzer.model.DependencyInfo
Direct Known Subclasses:
ClassBundleDependencyInfo, ClassDependencyInfo

public abstract class DependencyInfo
extends java.lang.Object

The common superclass of all dependency analyzation results.

Version:
1.2
Author:
Manfred Duchrow

Method Summary
 boolean equals(java.lang.Object obj)
          Returns true if the given object is equal to this object
 ClassInformation[] getAllReferredClasses()
          Returns the complete list of (directly and indirectly) referred classes
 ClassInformation[] getAllReferredClasses(StringFilterCollection filter)
          Returns a list of (directly and indirectly) referred classes that don't match the given filter.
 GenericClassContainer[] getAllReferredContainers()
          Returns all containers the class depends on
 GenericClassContainer[] getAllReferredContainers(StringFilterCollection filter)
          Returns all containers the class depends on after applying the given filter
 ClassPackage[] getAllReferredPackages()
          Returns all packages the class is dependent of
 ClassPackage[] getAllReferredPackages(StringFilterCollection filter)
          Returns all packages the class is dependent of applying the given filter
abstract  IAnalyzableElement getAnalyzedElement()
          Returns the element has been analyzed to produce this dependency info
 long getAnalyzingTime()
          Returns the time (in milliseconds) the analyzation lasted
abstract  ClassInformation[] getDirectlyReferredClasses()
          Returns only the classes the analyzed class depends on directly.
 ClassInformation[] getDirectlyReferredClasses(StringFilterCollection filter)
          Returns only the classes the analyzed class depends on directly but without all those that match the given filter
 GenericClassContainer[] getDirectlyReferredContainers()
          Returns all containers the class directly depends on
 GenericClassContainer[] getDirectlyReferredContainers(StringFilterCollection filter)
          Returns all containers the class directly depends on
 ClassPackage[] getDirectlyReferredPackages()
          Returns all packages the class directly depends on
 ClassPackage[] getDirectlyReferredPackages(StringFilterCollection filter)
          Returns all packages the class directly depends on
 ClassInformation[] getIndirectlyReferredClasses()
          Returns only the classes the analyzed class depends on indirectly.
 ClassInformation[] getIndirectlyReferredClasses(StringFilterCollection filter)
          Returns only the classes the analyzed class depends on indirectly but without all those that match the given filter
 GenericClassContainer[] getIndirectlyReferredContainers()
          Returns all containers the class indirectly depends on
 GenericClassContainer[] getIndirectlyReferredContainers(StringFilterCollection filter)
          Returns all containers the class indirectly depends on
 ClassPackage[] getIndirectlyReferredPackages()
          Returns all packages the class indirectly depends on
 ClassPackage[] getIndirectlyReferredPackages(StringFilterCollection filter)
          Returns all packages the class indirectly depends on
abstract  java.lang.String getName()
          Returns the name of the analyzed object
 Workset getWorkset()
          Returns the workset in which this dependency analysis has been done
 int hashCode()
          Returns the hashcode for this object
 void setAnalyzingTime(long newValue)
          Sets the time (in milliseconds) the analyzation lasted
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getName

public abstract java.lang.String getName()
Returns the name of the analyzed object


getDirectlyReferredClasses

public abstract ClassInformation[] getDirectlyReferredClasses()
Returns only the classes the analyzed class depends on directly.


getAnalyzedElement

public abstract IAnalyzableElement getAnalyzedElement()
Returns the element has been analyzed to produce this dependency info


getAllReferredClasses

public ClassInformation[] getAllReferredClasses()
Returns the complete list of (directly and indirectly) referred classes


getAllReferredClasses

public ClassInformation[] getAllReferredClasses(StringFilterCollection filter)
Returns a list of (directly and indirectly) referred classes that don't match the given filter.

Parameters:
filter - The filter that defines which classes NOT to return

getDirectlyReferredClasses

public ClassInformation[] getDirectlyReferredClasses(StringFilterCollection filter)
Returns only the classes the analyzed class depends on directly but without all those that match the given filter

Parameters:
filter - The filter that defines which classes NOT to return

getIndirectlyReferredClasses

public ClassInformation[] getIndirectlyReferredClasses()
Returns only the classes the analyzed class depends on indirectly.


getIndirectlyReferredClasses

public ClassInformation[] getIndirectlyReferredClasses(StringFilterCollection filter)
Returns only the classes the analyzed class depends on indirectly but without all those that match the given filter

Parameters:
filter - The filter that defines which classes NOT to return

getAllReferredPackages

public ClassPackage[] getAllReferredPackages()
Returns all packages the class is dependent of


getAllReferredPackages

public ClassPackage[] getAllReferredPackages(StringFilterCollection filter)
Returns all packages the class is dependent of applying the given filter

Parameters:
filter - The filter specifies which packages NOT to return

getAllReferredContainers

public GenericClassContainer[] getAllReferredContainers()
Returns all containers the class depends on


getAllReferredContainers

public GenericClassContainer[] getAllReferredContainers(StringFilterCollection filter)
Returns all containers the class depends on after applying the given filter

Parameters:
filter - The filter specifies which containers NOT to return

getDirectlyReferredPackages

public ClassPackage[] getDirectlyReferredPackages()
Returns all packages the class directly depends on


getDirectlyReferredPackages

public ClassPackage[] getDirectlyReferredPackages(StringFilterCollection filter)
Returns all packages the class directly depends on

Parameters:
filter - The filter specifies which packages NOT to return

getDirectlyReferredContainers

public GenericClassContainer[] getDirectlyReferredContainers()
Returns all containers the class directly depends on


getDirectlyReferredContainers

public GenericClassContainer[] getDirectlyReferredContainers(StringFilterCollection filter)
Returns all containers the class directly depends on

Parameters:
filter - The filter specifies which containers NOT to return

getIndirectlyReferredPackages

public ClassPackage[] getIndirectlyReferredPackages()
Returns all packages the class indirectly depends on


getIndirectlyReferredPackages

public ClassPackage[] getIndirectlyReferredPackages(StringFilterCollection filter)
Returns all packages the class indirectly depends on

Parameters:
filter - The filter specifies which packages NOT to return

getIndirectlyReferredContainers

public GenericClassContainer[] getIndirectlyReferredContainers()
Returns all containers the class indirectly depends on


getIndirectlyReferredContainers

public GenericClassContainer[] getIndirectlyReferredContainers(StringFilterCollection filter)
Returns all containers the class indirectly depends on

Parameters:
filter - The filter specifies which containers NOT to return

getWorkset

public Workset getWorkset()
Returns the workset in which this dependency analysis has been done


getAnalyzingTime

public long getAnalyzingTime()
Returns the time (in milliseconds) the analyzation lasted


setAnalyzingTime

public void setAnalyzingTime(long newValue)
Sets the time (in milliseconds) the analyzation lasted


equals

public boolean equals(java.lang.Object obj)
Returns true if the given object is equal to this object

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Returns the hashcode for this object

Overrides:
hashCode in class java.lang.Object