net.sf.jlayercheck.util.model
Class ClassDependency

java.lang.Object
  extended by net.sf.jlayercheck.util.model.ClassDependency

public class ClassDependency
extends Object

Represents the dependency to a specified class.

Author:
webmaster@earth3d.org

Field Summary
protected  String dependency
           
protected  Set<Integer> lineNumbers
           
protected  boolean unallowedDependency
           
 
Constructor Summary
ClassDependency(String dependency)
           
 
Method Summary
 void addLineNumber(int lineNumber)
           
 boolean equals(Object obj)
           
 String getDependency()
          The name of the class to which the dependency exists.
 Set<Integer> getLineNumbers()
          Returns a Set of line numbers, where dependencies to this class occured in the source file.
 int hashCode()
           
 boolean isUnallowedDependency()
          If this dependency is allowed or not by the module/architecture configuration.
 void setUnallowedDependency(boolean unallowedDependency)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dependency

protected String dependency

lineNumbers

protected Set<Integer> lineNumbers

unallowedDependency

protected boolean unallowedDependency
Constructor Detail

ClassDependency

public ClassDependency(String dependency)
Method Detail

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

addLineNumber

public void addLineNumber(int lineNumber)

getLineNumbers

public Set<Integer> getLineNumbers()
Returns a Set of line numbers, where dependencies to this class occured in the source file.

Returns:
Set of line numbers

getDependency

public String getDependency()
The name of the class to which the dependency exists.

Returns:
classname

isUnallowedDependency

public boolean isUnallowedDependency()
If this dependency is allowed or not by the module/architecture configuration.

Returns:

setUnallowedDependency

public void setUnallowedDependency(boolean unallowedDependency)


Copyright © 2007. All Rights Reserved.