public static class ApplicationDependency.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ApplicationDependency.Builder |
applicationDependencyNodeIds(List<String> applicationDependencyNodeIds)
List of application dependencies on which this application dependency depends, each
identified by its nodeId.
|
ApplicationDependency |
build() |
ApplicationDependency.Builder |
copy(ApplicationDependency model) |
ApplicationDependency.Builder |
gav(String gav)
Group Artifact Version (GAV) identifier (Group:Artifact:Version).
|
ApplicationDependency.Builder |
nodeId(String nodeId)
Unique identifier of an application dependency, for example nodeId1.
|
ApplicationDependency.Builder |
purl(String purl)
Package URL defined in https://github.com/package-url/purl-spec, e.g.
|
public ApplicationDependency.Builder gav(String gav)
Group Artifact Version (GAV) identifier (Group:Artifact:Version). Example: org.graalvm.nativeimage:svm:21.1.0. “N/A” for non-maven artifacts.
gav
- the value to setpublic ApplicationDependency.Builder purl(String purl)
Package URL defined in https://github.com/package-url/purl-spec, e.g. pkg:maven/org.graalvm.nativeimage/svm@21.1.0
purl
- the value to setpublic ApplicationDependency.Builder nodeId(String nodeId)
Unique identifier of an application dependency, for example nodeId1. The nodeId can be generated by assigning a unique id to each application dependency in the tree of application dependencies. Every node, even those who share the same GAV, should have a different nodeId. The preferred way of constructing a nodeId is to assign incremental integers during a breadth first or depth first search. A nodeId can be reused only it refers to the same subtree of application dependencies. (This is not equivalent to referring to the same GAV, that is, a GAV can have multiple transitive dependencies.)
nodeId
- the value to setpublic ApplicationDependency.Builder applicationDependencyNodeIds(List<String> applicationDependencyNodeIds)
List of application dependencies on which this application dependency depends, each identified by its nodeId.
applicationDependencyNodeIds
- the value to setpublic ApplicationDependency build()
public ApplicationDependency.Builder copy(ApplicationDependency model)
Copyright © 2016–2024. All rights reserved.