com.synopsys.integration.bdio.model.BdioCreationInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of integration-bdio Show documentation
Show all versions of integration-bdio Show documentation
A library to allow for easy and clear creation of Black Duck I/O (bdio) documents.
/*
* integration-bdio
*
* Copyright (c) 2022 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);
}
}