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

io.github.algomaster99.terminator.commons.cyclonedx.OrganizationalEntity Maven / Gradle / Ivy


package io.github.algomaster99.terminator.commons.cyclonedx;

import java.util.ArrayList;
import java.util.List;
import javax.annotation.processing.Generated;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;


/**
 * Organizational Entity Object
 * 

* * */ @JsonInclude(JsonInclude.Include.NON_NULL) @JsonPropertyOrder({ "bom-ref", "name", "url", "contact" }) @Generated("jsonschema2pojo") public class OrganizationalEntity { /** * Identifier for referable and therefore interlink-able elements.value SHOULD not start with the BOM-Link intro 'urn:cdx:' * */ @JsonProperty("bom-ref") @JsonPropertyDescription("Identifier for referable and therefore interlink-able elements.") private String bomRef; /** * Name *

* The name of the organization * */ @JsonProperty("name") @JsonPropertyDescription("The name of the organization") private String name; /** * URL *

* The URL of the organization. Multiple URLs are allowed. * */ @JsonProperty("url") @JsonPropertyDescription("The URL of the organization. Multiple URLs are allowed.") private List url = new ArrayList(); /** * Contact *

* A contact at the organization. Multiple contacts are allowed. * */ @JsonProperty("contact") @JsonPropertyDescription("A contact at the organization. Multiple contacts are allowed.") private List contact = new ArrayList(); /** * Identifier for referable and therefore interlink-able elements.value SHOULD not start with the BOM-Link intro 'urn:cdx:' * */ @JsonProperty("bom-ref") public String getBomRef() { return bomRef; } /** * Identifier for referable and therefore interlink-able elements.value SHOULD not start with the BOM-Link intro 'urn:cdx:' * */ @JsonProperty("bom-ref") public void setBomRef(String bomRef) { this.bomRef = bomRef; } /** * Name *

* The name of the organization * */ @JsonProperty("name") public String getName() { return name; } /** * Name *

* The name of the organization * */ @JsonProperty("name") public void setName(String name) { this.name = name; } /** * URL *

* The URL of the organization. Multiple URLs are allowed. * */ @JsonProperty("url") public List getUrl() { return url; } /** * URL *

* The URL of the organization. Multiple URLs are allowed. * */ @JsonProperty("url") public void setUrl(List url) { this.url = url; } /** * Contact *

* A contact at the organization. Multiple contacts are allowed. * */ @JsonProperty("contact") public List getContact() { return contact; } /** * Contact *

* A contact at the organization. Multiple contacts are allowed. * */ @JsonProperty("contact") public void setContact(List contact) { this.contact = contact; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(OrganizationalEntity.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('['); sb.append("bomRef"); sb.append('='); sb.append(((this.bomRef == null)?"":this.bomRef)); sb.append(','); sb.append("name"); sb.append('='); sb.append(((this.name == null)?"":this.name)); sb.append(','); sb.append("url"); sb.append('='); sb.append(((this.url == null)?"":this.url)); sb.append(','); sb.append("contact"); sb.append('='); sb.append(((this.contact == null)?"":this.contact)); sb.append(','); if (sb.charAt((sb.length()- 1)) == ',') { sb.setCharAt((sb.length()- 1), ']'); } else { sb.append(']'); } return sb.toString(); } @Override public int hashCode() { int result = 1; result = ((result* 31)+((this.name == null)? 0 :this.name.hashCode())); result = ((result* 31)+((this.bomRef == null)? 0 :this.bomRef.hashCode())); result = ((result* 31)+((this.url == null)? 0 :this.url.hashCode())); result = ((result* 31)+((this.contact == null)? 0 :this.contact.hashCode())); return result; } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof OrganizationalEntity) == false) { return false; } OrganizationalEntity rhs = ((OrganizationalEntity) other); return (((((this.name == rhs.name)||((this.name!= null)&&this.name.equals(rhs.name)))&&((this.bomRef == rhs.bomRef)||((this.bomRef!= null)&&this.bomRef.equals(rhs.bomRef))))&&((this.url == rhs.url)||((this.url!= null)&&this.url.equals(rhs.url))))&&((this.contact == rhs.contact)||((this.contact!= null)&&this.contact.equals(rhs.contact)))); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy