org.sonar.api.design
Class Dependency

java.lang.Object
  extended by org.sonar.api.design.Dependency
All Implemented Interfaces:
org.sonar.graph.Edge<Resource>

public class Dependency
extends Object
implements org.sonar.graph.Edge<Resource>


Constructor Summary
Dependency(Resource from, Resource to)
           
 
Method Summary
 boolean equals(Object obj)
           
 Resource getFrom()
           
 Long getId()
           
 Dependency getParent()
           
 Resource getTo()
           
 String getUsage()
           
 int getWeight()
           
 int hashCode()
           
 Dependency setId(Long id)
          Internal use only.
 Dependency setParent(Dependency parent)
           
 Dependency setUsage(String usage)
           
 Dependency setWeight(int weight)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Dependency

public Dependency(Resource from,
                  Resource to)
Method Detail

getFrom

public Resource getFrom()
Specified by:
getFrom in interface org.sonar.graph.Edge<Resource>

getTo

public Resource getTo()
Specified by:
getTo in interface org.sonar.graph.Edge<Resource>

getUsage

public String getUsage()

setUsage

public Dependency setUsage(String usage)

getWeight

public int getWeight()
Specified by:
getWeight in interface org.sonar.graph.Edge<Resource>

setWeight

public Dependency setWeight(int weight)

getParent

public Dependency getParent()

setParent

public Dependency setParent(Dependency parent)

getId

public Long getId()

setId

public Dependency setId(Long id)
Internal use only.


equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009–2014 SonarSource. All rights reserved.