Builder

Builder class for creating PUrl instances. Use this class to construct a PUrl object with the desired components.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun build(): PUrl

Builds a PUrl instance with the configured components. This method validates and corrects the values according to the package type specifications.

Link copied to clipboard

Sets the name component of the purl.

Link copied to clipboard
fun namespace(namespace: List<String>): PUrl.Builder

Sets the namespace component of the purl.

Link copied to clipboard
fun qualifiers(qualifiers: List<<Error class: unknown class><String, String>>): PUrl.Builder

Sets the qualifiers component of the purl.

Link copied to clipboard
fun subpath(subpath: String): PUrl.Builder

Sets the subpath component of the purl.

Link copied to clipboard

Sets the type component of the purl. The type will be converted to lowercase.

Link copied to clipboard
fun version(version: String): PUrl.Builder

Sets the version component of the purl.