Package org.ossreviewtoolkit.model
Object DependencyGraph.Companion
-
- All Implemented Interfaces:
public class DependencyGraph.Companion
-
-
Field Summary
Fields Modifier and Type Field Description private final Comparator<DependencyReference>DEPENDENCY_REFERENCE_COMPARATORpublic final static DependencyGraph.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final StringqualifyScope(Project project, String scopeName)Return a name for the given scope that is qualified with parts of the identifier of the given project. final StringqualifyScope(Identifier projectId, String scopeName)Return a name for the given scope that is qualified with parts of the given projectId. final StringunqualifyScope(String scopeName)Extract the plain (un-qualified) scope name from the given qualified scopeName. final Comparator<DependencyReference>getDEPENDENCY_REFERENCE_COMPARATOR()A comparator for DependencyReference objects. -
-
Method Detail
-
qualifyScope
final String qualifyScope(Project project, String scopeName)
Return a name for the given scope that is qualified with parts of the identifier of the given project. This is used to ensure that the scope names are unique when constructing a dependency graph from multiple projects.
-
qualifyScope
final String qualifyScope(Identifier projectId, String scopeName)
Return a name for the given scope that is qualified with parts of the given projectId. This is used to ensure that the scope names are unique when constructing a dependency graph from multiple projects.
-
unqualifyScope
final String unqualifyScope(String scopeName)
Extract the plain (un-qualified) scope name from the given qualified scopeName. If the passed in scopeName is not qualified, return it unchanged.
-
getDEPENDENCY_REFERENCE_COMPARATOR
final Comparator<DependencyReference> getDEPENDENCY_REFERENCE_COMPARATOR()
A comparator for DependencyReference objects. Note that the concrete order does not really matter, it just has to be well-defined.
-
-
-
-