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

se.bjurr.violations.lib.model.generated.sarif.SarifSchema Maven / Gradle / Ivy


package se.bjurr.violations.lib.model.generated.sarif;

import java.net.URI;
import java.util.ArrayList;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;


/**
 * Static Analysis Results Format (SARIF) Version 2.1.0 JSON Schema
 * 

* Static Analysis Results Format (SARIF) Version 2.1.0 JSON Schema: a standard format for the output of static analysis tools. * */ public class SarifSchema { /** * The URI of the JSON schema corresponding to the version. * */ private URI $schema; /** * The SARIF format version of this log file. * (Required) * */ private Object version; /** * The set of runs contained in this log file. * (Required) * */ private List runs = new ArrayList(); /** * References to external property files that share data between runs. * */ private Set inlineExternalProperties = new LinkedHashSet(); /** * Key/value pairs that provide additional information about the object. * */ private PropertyBag properties; /** * The URI of the JSON schema corresponding to the version. * */ public URI get$schema() { return $schema; } /** * The URI of the JSON schema corresponding to the version. * */ public void set$schema(URI $schema) { this.$schema = $schema; } public SarifSchema with$schema(URI $schema) { this.$schema = $schema; return this; } /** * The SARIF format version of this log file. * (Required) * */ public Object getVersion() { return version; } /** * The SARIF format version of this log file. * (Required) * */ public void setVersion(Object version) { this.version = version; } public SarifSchema withVersion(Object version) { this.version = version; return this; } /** * The set of runs contained in this log file. * (Required) * */ public List getRuns() { return runs; } /** * The set of runs contained in this log file. * (Required) * */ public void setRuns(List runs) { this.runs = runs; } public SarifSchema withRuns(List runs) { this.runs = runs; return this; } /** * References to external property files that share data between runs. * */ public Set getInlineExternalProperties() { return inlineExternalProperties; } /** * References to external property files that share data between runs. * */ public void setInlineExternalProperties(Set inlineExternalProperties) { this.inlineExternalProperties = inlineExternalProperties; } public SarifSchema withInlineExternalProperties(Set inlineExternalProperties) { this.inlineExternalProperties = inlineExternalProperties; return this; } /** * Key/value pairs that provide additional information about the object. * */ public PropertyBag getProperties() { return properties; } /** * Key/value pairs that provide additional information about the object. * */ public void setProperties(PropertyBag properties) { this.properties = properties; } public SarifSchema withProperties(PropertyBag properties) { this.properties = properties; return this; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(SarifSchema.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('['); sb.append("$schema"); sb.append('='); sb.append(((this.$schema == null)?"":this.$schema)); sb.append(','); sb.append("version"); sb.append('='); sb.append(((this.version == null)?"":this.version)); sb.append(','); sb.append("runs"); sb.append('='); sb.append(((this.runs == null)?"":this.runs)); sb.append(','); sb.append("inlineExternalProperties"); sb.append('='); sb.append(((this.inlineExternalProperties == null)?"":this.inlineExternalProperties)); sb.append(','); sb.append("properties"); sb.append('='); sb.append(((this.properties == null)?"":this.properties)); 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.inlineExternalProperties == null)? 0 :this.inlineExternalProperties.hashCode())); result = ((result* 31)+((this.$schema == null)? 0 :this.$schema.hashCode())); result = ((result* 31)+((this.version == null)? 0 :this.version.hashCode())); result = ((result* 31)+((this.runs == null)? 0 :this.runs.hashCode())); result = ((result* 31)+((this.properties == null)? 0 :this.properties.hashCode())); return result; } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof SarifSchema) == false) { return false; } SarifSchema rhs = ((SarifSchema) other); return ((((((this.inlineExternalProperties == rhs.inlineExternalProperties)||((this.inlineExternalProperties!= null)&&this.inlineExternalProperties.equals(rhs.inlineExternalProperties)))&&((this.$schema == rhs.$schema)||((this.$schema!= null)&&this.$schema.equals(rhs.$schema))))&&((this.version == rhs.version)||((this.version!= null)&&this.version.equals(rhs.version))))&&((this.runs == rhs.runs)||((this.runs!= null)&&this.runs.equals(rhs.runs))))&&((this.properties == rhs.properties)||((this.properties!= null)&&this.properties.equals(rhs.properties)))); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy