com.sun.jini.tool.classdepend
Class ClassDependencyRelationship

java.lang.Object
  extended by com.sun.jini.tool.classdepend.ClassDependencyRelationship

public class ClassDependencyRelationship
extends Object

A container to store class dependency related information for later analysis.

Author:
Peter Firmstone
See Also:
ClassDepend

Method Summary
 void addProvider(ClassDependencyRelationship provider)
          Add a provider class to this dependant class.
 void addProviders(Set providers)
           
 Set getDependants()
          Get the classes dependant on this class.
 Set getProviders()
          Get the classes that this class needs to function.
 boolean isRootClass()
          Is this a root dependant, that is no other classes depend on this.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

addProvider

public void addProvider(ClassDependencyRelationship provider)
Add a provider class to this dependant class.

Parameters:
provider -

getDependants

public Set getDependants()
Get the classes dependant on this class.

Returns:
classes dependant on this

addProviders

public void addProviders(Set providers)

getProviders

public Set getProviders()
Get the classes that this class needs to function.

Returns:

toString

public String toString()
Overrides:
toString in class Object

isRootClass

public boolean isRootClass()
Is this a root dependant, that is no other classes depend on this.

Returns:
true or false


Copyright 2007, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.