Class Identifier

  • All Implemented Interfaces:
    kotlin.Comparable

    
    public final class Identifier
     implements Comparable<Identifier>
                        

    A unique identifier for a software package.

    • Constructor Detail

      • Identifier

        Identifier(String identifier)
        Create an Identifier from a string with the format "type:namespace:name:version".
    • Method Detail

      • getType

         final String getType()

        The type of package. When used in the context of a Project, the type is the name of the package manager that manages the project (e.g. "Gradle" for a Gradle project). When used in the context of a Package, the type is the name of the package type or protocol (e.g. "Maven" for a file from a Maven repository).

      • getNamespace

         final String getNamespace()

        The namespace of the package, for example the group for "Maven" or the scope for "NPM".