Package org.ossreviewtoolkit.model.utils
Class ClearlyDefinedUtilsKt
-
- All Implemented Interfaces:
public final class ClearlyDefinedUtilsKt
-
-
Method Summary
Modifier and Type Method Description final static ComponentTypetoClearlyDefinedType(Identifier $self)Map an Identifier's type to a ClearlyDefined ComponentType, or return null if a mapping is not possible. final static ProvidertoClearlyDefinedProvider(Package $self)Determine the ClearlyDefined Provider based on a Package's location as defined by the RemoteArtifact URLs or the VcsInfo URL. final static CoordinatestoClearlyDefinedCoordinates(Package $self)Map an ORT Package to ClearlyDefined Coordinates, or to null if a mapping is not possible. final static SourceLocationtoClearlyDefinedSourceLocation(Package $self)Create a ClearlyDefined SourceLocation from a Package. -
-
Method Detail
-
toClearlyDefinedType
final static ComponentType toClearlyDefinedType(Identifier $self)
Map an Identifier's type to a ClearlyDefined ComponentType, or return null if a mapping is not possible.
-
toClearlyDefinedProvider
final static Provider toClearlyDefinedProvider(Package $self)
Determine the ClearlyDefined Provider based on a Package's location as defined by the RemoteArtifact URLs or the VcsInfo URL. Return null if a mapping is not possible.
-
toClearlyDefinedCoordinates
final static Coordinates toClearlyDefinedCoordinates(Package $self)
Map an ORT Package to ClearlyDefined Coordinates, or to null if a mapping is not possible.
-
toClearlyDefinedSourceLocation
final static SourceLocation toClearlyDefinedSourceLocation(Package $self)
Create a ClearlyDefined SourceLocation from a Package. Prefer VcsInfo, but eventually fall back to the RemoteArtifact for the source code, or return null if not enough information is available.
-
-
-
-