com.synopsys.integration.bdio.model.dependency.Dependency 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.dependency;
import com.synopsys.integration.bdio.model.externalid.ExternalId;
import com.synopsys.integration.util.Stringable;
public class Dependency extends Stringable {
public static final DependencyFactory FACTORY = new DependencyFactory();
private String name;
private String version;
private ExternalId externalId;
public Dependency(String name, String version, ExternalId externalId) {
this.name = name;
this.version = version;
this.externalId = externalId;
}
public Dependency(String name, ExternalId externalId) {
this(name, externalId.getVersion(), externalId);
}
public Dependency(ExternalId externalId) {
this(externalId.getName(), externalId);
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getVersion() {
return version;
}
public void setVersion(String version) {
this.version = version;
}
public ExternalId getExternalId() {
return externalId;
}
public void setExternalId(ExternalId externalId) {
this.externalId = externalId;
}
}