Skip to content
Eric Kerwin edited this page Feb 22, 2017 · 1 revision

The main class that you should try to use is the BdioNodeFactory. With this class's API, you should be able to create a BillOfMaterials node, a Project node, and all the various Component nodes that you will need to create your Black Duck I/O file for uploading to the Black Duck Hub.

The way you will create a tree structure of Components is by adding 'relationships' to the parent Component for all its children Components. The methods to perform this adding is provided in the BdioPropertyHelper.

This behavior is best demonstrated in the JUnit test, BdioNodeFactoryTest. It should create a List of BdioNode's that will form the final file, sample.jsonld.

Clone this wiki locally