All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.metaeffekt.artifact.analysis.spdxbom.hierarchy.HierarchyGraphNode Maven / Gradle / Ivy

There is a newer version: 0.132.0
Show newest version
package com.metaeffekt.artifact.analysis.spdxbom.hierarchy;

import lombok.Getter;
import lombok.Setter;
import org.metaeffekt.core.inventory.processor.model.Artifact;

/**
 * This class serves as a node of the HierarchyGraph class and holds information on either inventory
 * artifacts or assets.
 */
@Getter
@Setter
public class HierarchyGraphNode {

    private String id;

    // should be null if node is of type DOCUMENT or of type PRIMARY and the primary asset
    // is not listed under artifacts (only under assets) in the inventory
    private Artifact artifact;

    private NODE_TYPE type;

    public enum NODE_TYPE{
        DOCUMENT,
        PRIMARY,
        ARTIFACT
    }

    public HierarchyGraphNode(String id, Artifact artifact, NODE_TYPE type){
        this.id = id;
        this.artifact = artifact;
        this.type  = type;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy