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.
 boolean equals(Object o)
           
 Set getDependants()
          Get the classes dependant on this class.
 Set getProviders()
          Get the classes that this class needs to function.
 int hashCode()
           
 boolean isRootClass()
          If this a root dependant, the class was used to discover dependencies.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, 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

getProviders

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

Returns:
a Set of classes

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

isRootClass

public boolean isRootClass()
If this a root dependant, the class was used to discover dependencies.

Returns:
true or false


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