Class AggregatedDependencyAccess
- java.lang.Object
-
- com.hello2morrow.sonargraph.core.api.model.ElementAccess<com.hello2morrow.sonargraph.core.model.programming.AggregatedDependency>
-
- com.hello2morrow.sonargraph.core.api.model.AggregatedDependencyAccess
-
- All Implemented Interfaces:
IAggregatedDependencyAccess
,IElementAccess
,INamedElementAccess
public final class AggregatedDependencyAccess extends ElementAccess<com.hello2morrow.sonargraph.core.model.programming.AggregatedDependency> implements IAggregatedDependencyAccess
Representation for a set of aggregated dependencies. Aggregated dependencies are created to collect all dependencies between two arbitrary programming elements. For example the dependencies between two classes contain all dependencies from all members of the first class to any member of the second class.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.hello2morrow.sonargraph.core.api.model.ElementAccess
ElementAccess.IAccessFactory
-
Nested classes/interfaces inherited from interface com.hello2morrow.sonargraph.api.model.INamedElementAccess
INamedElementAccess.INamedElementAccessVisitor
-
-
Constructor Summary
Constructors Constructor Description AggregatedDependencyAccess(com.hello2morrow.sonargraph.core.model.programming.AggregatedDependency element, ElementAccess.IAccessFactory factory)
Internal use only
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<IDependencyAccess>
getDependencies()
List all the dependencies between 'from' and 'to'.ElementAccess<? extends com.hello2morrow.sonargraph.core.model.element.NamedElement>
getFrom()
Get the 'from' element of this aggregated dependency.int
getNumberOfDependencies()
Get number of dependencies between 'from' and 'to'.ElementAccess<? extends com.hello2morrow.sonargraph.core.model.element.NamedElement>
getTo()
Get the 'to' element of this aggregated dependency.-
Methods inherited from class com.hello2morrow.sonargraph.core.api.model.ElementAccess
accept, equals, getChildren, getElement, getFullyQualifiedName, getIncomingDependenciesRecursively, getIncomingDependenciesRecursively, getIssueCount, getMetricLevel, getName, getNameWithSignature, getOutgoingDependenciesRecursively, getOutgoingDependenciesRecursively, getOutgoingDependenciesRecursively, getParent, getParent, getReferencedElementsRecursively, getReferencedElementsRecursively, getReferencedElementsRecursively, getReferencingElementsRecursively, getReferencingElementsRecursively, getShortName, getShortNameWithSignature, hashCode, ignoreIssues, isExcluded, isExternal, setFactory, toString
-
Methods inherited from interface com.hello2morrow.sonargraph.api.model.IElementAccess
getName, getNameWithSignature, getShortName, getShortNameWithSignature, ignoreIssues, isExcluded, isExternal
-
Methods inherited from interface com.hello2morrow.sonargraph.api.model.INamedElementAccess
getIssueCount
-
-
-
-
Constructor Detail
-
AggregatedDependencyAccess
public AggregatedDependencyAccess(com.hello2morrow.sonargraph.core.model.programming.AggregatedDependency element, ElementAccess.IAccessFactory factory)
Internal use only
-
-
Method Detail
-
getFrom
public ElementAccess<? extends com.hello2morrow.sonargraph.core.model.element.NamedElement> getFrom()
Get the 'from' element of this aggregated dependency.- Specified by:
getFrom
in interfaceIAggregatedDependencyAccess
- Returns:
- The 'from' element
-
getTo
public ElementAccess<? extends com.hello2morrow.sonargraph.core.model.element.NamedElement> getTo()
Get the 'to' element of this aggregated dependency.- Specified by:
getTo
in interfaceIAggregatedDependencyAccess
- Returns:
- The 'to' element
-
getNumberOfDependencies
public int getNumberOfDependencies()
Get number of dependencies between 'from' and 'to'.- Specified by:
getNumberOfDependencies
in interfaceIAggregatedDependencyAccess
- Returns:
- Number of dependencies between 'from' and 'to'.
-
getDependencies
public java.util.List<IDependencyAccess> getDependencies()
List all the dependencies between 'from' and 'to'.- Specified by:
getDependencies
in interfaceIAggregatedDependencyAccess
- Returns:
- List of dependencies
-
-