com.synopsys.integration.blackduck.api.generated.view.ComponentViewV4 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of blackduck-common-api Show documentation
Show all versions of blackduck-common-api Show documentation
A library of mostly temporary request/response classes for the Black Duck REST API.
/**
* blackduck-common-api
*
* Copyright (c) 2020 Synopsys, Inc.
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.synopsys.integration.blackduck.api.generated.view;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import com.synopsys.integration.blackduck.api.core.BlackDuckView;
import com.synopsys.integration.blackduck.api.core.response.LinkMultipleResponses;
import com.synopsys.integration.blackduck.api.core.response.LinkResponse;
import com.synopsys.integration.blackduck.api.generated.enumeration.ComponentApprovalStatusType;
import com.synopsys.integration.blackduck.api.generated.enumeration.ComponentSourceType;
import com.synopsys.integration.blackduck.api.generated.view.CustomFieldView;
import com.synopsys.integration.blackduck.api.generated.view.TagView;
import com.synopsys.integration.blackduck.api.generated.view.VulnerabilityView;
import com.synopsys.integration.blackduck.api.manual.throwaway.generated.view.ComponentVersionView;
/**
* this file should not be edited - if changes are necessary, the generator should be updated, then this file should be re-created
* **/
public class ComponentViewV4 extends BlackDuckView {
public static final Map links = new HashMap<>();
public static final String CUSTOM_FIELDS_LINK = "custom-fields";
public static final String TAGS_LINK = "tags";
public static final String VERSIONS_LINK = "versions";
public static final String VULNERABILITIES_LINK = "vulnerabilities";
public static final LinkMultipleResponses CUSTOM_FIELDS_LINK_RESPONSE = new LinkMultipleResponses(CUSTOM_FIELDS_LINK, CustomFieldView.class);
public static final LinkMultipleResponses TAGS_LINK_RESPONSE = new LinkMultipleResponses(TAGS_LINK, TagView.class);
public static final LinkMultipleResponses VERSIONS_LINK_RESPONSE = new LinkMultipleResponses(VERSIONS_LINK, ComponentVersionView.class);
public static final LinkMultipleResponses VULNERABILITIES_LINK_RESPONSE = new LinkMultipleResponses(VULNERABILITIES_LINK, VulnerabilityView.class);
static {
links.put(CUSTOM_FIELDS_LINK, CUSTOM_FIELDS_LINK_RESPONSE);
links.put(TAGS_LINK, TAGS_LINK_RESPONSE);
links.put(VERSIONS_LINK, VERSIONS_LINK_RESPONSE);
links.put(VULNERABILITIES_LINK, VULNERABILITIES_LINK_RESPONSE);
}
private ComponentApprovalStatusType approvalStatus;
private String url;
private String description;
private String name;
private String primaryLanguage;
private String notes;
private ComponentSourceType source;
private java.util.List additionalHomepages;
public ComponentApprovalStatusType getApprovalStatus() {
return approvalStatus;
}
public void setApprovalStatus(ComponentApprovalStatusType approvalStatus) {
this.approvalStatus = approvalStatus;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getPrimaryLanguage() {
return primaryLanguage;
}
public void setPrimaryLanguage(String primaryLanguage) {
this.primaryLanguage = primaryLanguage;
}
public String getNotes() {
return notes;
}
public void setNotes(String notes) {
this.notes = notes;
}
public ComponentSourceType getSource() {
return source;
}
public void setSource(ComponentSourceType source) {
this.source = source;
}
public java.util.List getAdditionalHomepages() {
return additionalHomepages;
}
public void setAdditionalHomepages(java.util.List additionalHomepages) {
this.additionalHomepages = additionalHomepages;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy