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

com.synopsys.integration.bdio.model.BdioCreationInfo Maven / Gradle / Ivy

Go to download

A library to allow for easy and clear creation of Black Duck I/O (bdio) documents.

The newest version!
/*
 * integration-bdio
 *
 * Copyright (c) 2024 Synopsys, Inc.
 *
 * Use subject to the terms and conditions of the Synopsys End User Software License and Maintenance Agreement. All rights reserved worldwide.
 */
package com.synopsys.integration.bdio.model;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

import com.google.gson.annotations.SerializedName;

public class BdioCreationInfo {
    @SerializedName("spdx:creator")
    private final List creator = new ArrayList<>();

    @SerializedName("spdx:created")
    public String created;

    // ekerwin 2018-06-11
    // Black Duck only supports a single creator and if there are multiple creators, Black Duck will use only the first one.
    public void setPrimarySpdxCreator(final SpdxCreator spdxCreator) {
        creator.add(0, spdxCreator.getData());
    }

    public void addSpdxCreator(final SpdxCreator spdxCreator) {
        creator.add(spdxCreator.getData());
    }

    public List getCreator() {
        return Collections.unmodifiableList(creator);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy