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

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


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

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;


/**
 * SWID Tag
 * 

* Specifies metadata and content for ISO-IEC 19770-2 Software Identification (SWID) Tags. * */ @JsonInclude(JsonInclude.Include.NON_NULL) @JsonPropertyOrder({ "tagId", "name", "version", "tagVersion", "patch", "text", "url" }) @Generated("jsonschema2pojo") public class Swid { /** * Tag ID *

* Maps to the tagId of a SoftwareIdentity. * (Required) * */ @JsonProperty("tagId") @JsonPropertyDescription("Maps to the tagId of a SoftwareIdentity.") private String tagId; /** * Name *

* Maps to the name of a SoftwareIdentity. * (Required) * */ @JsonProperty("name") @JsonPropertyDescription("Maps to the name of a SoftwareIdentity.") private String name; /** * Version *

* Maps to the version of a SoftwareIdentity. * */ @JsonProperty("version") @JsonPropertyDescription("Maps to the version of a SoftwareIdentity.") private String version = "0.0"; /** * Tag Version *

* Maps to the tagVersion of a SoftwareIdentity. * */ @JsonProperty("tagVersion") @JsonPropertyDescription("Maps to the tagVersion of a SoftwareIdentity.") private Integer tagVersion = 0; /** * Patch *

* Maps to the patch of a SoftwareIdentity. * */ @JsonProperty("patch") @JsonPropertyDescription("Maps to the patch of a SoftwareIdentity.") private Boolean patch = false; /** * Attachment *

* Specifies the metadata and content for an attachment. * */ @JsonProperty("text") @JsonPropertyDescription("Specifies the metadata and content for an attachment.") private Attachment text; /** * URL *

* The URL to the SWID file. * */ @JsonProperty("url") @JsonPropertyDescription("The URL to the SWID file.") private String url; /** * Tag ID *

* Maps to the tagId of a SoftwareIdentity. * (Required) * */ @JsonProperty("tagId") public String getTagId() { return tagId; } /** * Tag ID *

* Maps to the tagId of a SoftwareIdentity. * (Required) * */ @JsonProperty("tagId") public void setTagId(String tagId) { this.tagId = tagId; } /** * Name *

* Maps to the name of a SoftwareIdentity. * (Required) * */ @JsonProperty("name") public String getName() { return name; } /** * Name *

* Maps to the name of a SoftwareIdentity. * (Required) * */ @JsonProperty("name") public void setName(String name) { this.name = name; } /** * Version *

* Maps to the version of a SoftwareIdentity. * */ @JsonProperty("version") public String getVersion() { return version; } /** * Version *

* Maps to the version of a SoftwareIdentity. * */ @JsonProperty("version") public void setVersion(String version) { this.version = version; } /** * Tag Version *

* Maps to the tagVersion of a SoftwareIdentity. * */ @JsonProperty("tagVersion") public Integer getTagVersion() { return tagVersion; } /** * Tag Version *

* Maps to the tagVersion of a SoftwareIdentity. * */ @JsonProperty("tagVersion") public void setTagVersion(Integer tagVersion) { this.tagVersion = tagVersion; } /** * Patch *

* Maps to the patch of a SoftwareIdentity. * */ @JsonProperty("patch") public Boolean getPatch() { return patch; } /** * Patch *

* Maps to the patch of a SoftwareIdentity. * */ @JsonProperty("patch") public void setPatch(Boolean patch) { this.patch = patch; } /** * Attachment *

* Specifies the metadata and content for an attachment. * */ @JsonProperty("text") public Attachment getText() { return text; } /** * Attachment *

* Specifies the metadata and content for an attachment. * */ @JsonProperty("text") public void setText(Attachment text) { this.text = text; } /** * URL *

* The URL to the SWID file. * */ @JsonProperty("url") public String getUrl() { return url; } /** * URL *

* The URL to the SWID file. * */ @JsonProperty("url") public void setUrl(String url) { this.url = url; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(Swid.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('['); sb.append("tagId"); sb.append('='); sb.append(((this.tagId == null)?"":this.tagId)); sb.append(','); sb.append("name"); sb.append('='); sb.append(((this.name == null)?"":this.name)); sb.append(','); sb.append("version"); sb.append('='); sb.append(((this.version == null)?"":this.version)); sb.append(','); sb.append("tagVersion"); sb.append('='); sb.append(((this.tagVersion == null)?"":this.tagVersion)); sb.append(','); sb.append("patch"); sb.append('='); sb.append(((this.patch == null)?"":this.patch)); sb.append(','); sb.append("text"); sb.append('='); sb.append(((this.text == null)?"":this.text)); sb.append(','); sb.append("url"); sb.append('='); sb.append(((this.url == null)?"":this.url)); 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.patch == null)? 0 :this.patch.hashCode())); result = ((result* 31)+((this.tagVersion == null)? 0 :this.tagVersion.hashCode())); result = ((result* 31)+((this.tagId == null)? 0 :this.tagId.hashCode())); result = ((result* 31)+((this.name == null)? 0 :this.name.hashCode())); result = ((result* 31)+((this.text == null)? 0 :this.text.hashCode())); result = ((result* 31)+((this.version == null)? 0 :this.version.hashCode())); result = ((result* 31)+((this.url == null)? 0 :this.url.hashCode())); return result; } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof Swid) == false) { return false; } Swid rhs = ((Swid) other); return ((((((((this.patch == rhs.patch)||((this.patch!= null)&&this.patch.equals(rhs.patch)))&&((this.tagVersion == rhs.tagVersion)||((this.tagVersion!= null)&&this.tagVersion.equals(rhs.tagVersion))))&&((this.tagId == rhs.tagId)||((this.tagId!= null)&&this.tagId.equals(rhs.tagId))))&&((this.name == rhs.name)||((this.name!= null)&&this.name.equals(rhs.name))))&&((this.text == rhs.text)||((this.text!= null)&&this.text.equals(rhs.text))))&&((this.version == rhs.version)||((this.version!= null)&&this.version.equals(rhs.version))))&&((this.url == rhs.url)||((this.url!= null)&&this.url.equals(rhs.url)))); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy