java.lang.Object
org.praxislive.purl.PackageURL.Builder
- Enclosing class:
PackageURL
A builder construct for Package-URL objects.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the new PackageURL object.Adds the package name.withNamespace(String namespace) Adds the package namespace.withQualifier(String key, String value) Adds a package qualifier.withSubpath(String subpath) Adds the package subpath.Adds the package URL type.withVersion(String version) Adds the package version.
-
Method Details
-
withType
Adds the package URL type.- Parameters:
type- the package type- Returns:
- a reference to the builder
- See Also:
-
withNamespace
Adds the package namespace.- Parameters:
namespace- the package namespace- Returns:
- a reference to the builder
- See Also:
-
withName
Adds the package name.- Parameters:
name- the package name- Returns:
- a reference to the builder
- See Also:
-
withVersion
Adds the package version.- Parameters:
version- the package version- Returns:
- a reference to the builder
- See Also:
-
withSubpath
Adds the package subpath.- Parameters:
subpath- the package subpath- Returns:
- a reference to the builder
- See Also:
-
withQualifier
Adds a package qualifier.- Parameters:
key- the package qualifier keyvalue- the package qualifier value- Returns:
- a reference to the builder
- See Also:
-
build
Builds the new PackageURL object.- Returns:
- the new PackageURL object
-