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

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


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

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


/**
 * A result produced by an analysis tool.
 * 
 */
public class Result {

    /**
     * The stable, unique identifier of the rule, if any, to which this notification is relevant. This member can be used to retrieve rule metadata from the rules dictionary, if it exists.
     * 
     */
    private String ruleId;
    /**
     * The index within the tool component rules array of the rule object associated with this result.
     * 
     */
    private Integer ruleIndex = -1;
    /**
     * Information about how to locate a relevant reporting descriptor.
     * 
     */
    private ReportingDescriptorReference rule;
    /**
     * A value that categorizes results by evaluation state.
     * 
     */
    private Object kind = null;
    /**
     * A value specifying the severity level of the result.
     * 
     */
    private Object level = null;
    /**
     * Encapsulates a message intended to be read by the end user.
     * (Required)
     * 
     */
    private Message message;
    /**
     * Specifies the location of an artifact.
     * 
     */
    private ArtifactLocation analysisTarget;
    /**
     * The set of locations where the result was detected. Specify only one location unless the problem indicated by the result can only be corrected by making a change at every specified location.
     * 
     */
    private List locations = new ArrayList();
    /**
     * A stable, unique identifer for the result in the form of a GUID.
     * 
     */
    private String guid;
    /**
     * A stable, unique identifier for the equivalence class of logically identical results to which this result belongs, in the form of a GUID.
     * 
     */
    private String correlationGuid;
    /**
     * A positive integer specifying the number of times this logically unique result was observed in this run.
     * 
     */
    private Integer occurrenceCount;
    /**
     * A set of strings that contribute to the stable, unique identity of the result.
     * 
     */
    private PartialFingerprints partialFingerprints;
    /**
     * A set of strings each of which individually defines a stable, unique identity for the result.
     * 
     */
    private Fingerprints fingerprints;
    /**
     * An array of 'stack' objects relevant to the result.
     * 
     */
    private Set stacks = new LinkedHashSet();
    /**
     * An array of 'codeFlow' objects relevant to the result.
     * 
     */
    private List codeFlows = new ArrayList();
    /**
     * An array of zero or more unique graph objects associated with the result.
     * 
     */
    private Set graphs = new LinkedHashSet();
    /**
     * An array of one or more unique 'graphTraversal' objects.
     * 
     */
    private Set graphTraversals = new LinkedHashSet();
    /**
     * A set of locations relevant to this result.
     * 
     */
    private Set relatedLocations = new LinkedHashSet();
    /**
     * A set of suppressions relevant to this result.
     * 
     */
    private Set suppressions = new LinkedHashSet();
    /**
     * The state of a result relative to a baseline of a previous run.
     * 
     */
    private Result.BaselineState baselineState;
    /**
     * A number representing the priority or importance of the result.
     * 
     */
    private Double rank = -1.0D;
    /**
     * A set of artifacts relevant to the result.
     * 
     */
    private Set attachments = new LinkedHashSet();
    /**
     * An absolute URI at which the result can be viewed.
     * 
     */
    private URI hostedViewerUri;
    /**
     * The URIs of the work items associated with this result.
     * 
     */
    private Set workItemUris = new LinkedHashSet();
    /**
     * Contains information about how and when a result was detected.
     * 
     */
    private ResultProvenance provenance;
    /**
     * An array of 'fix' objects, each of which represents a proposed fix to the problem indicated by the result.
     * 
     */
    private Set fixes = new LinkedHashSet();
    /**
     * An array of references to taxonomy reporting descriptors that are applicable to the result.
     * 
     */
    private Set taxa = new LinkedHashSet();
    /**
     * Describes an HTTP request.
     * 
     */
    private WebRequest webRequest;
    /**
     * Describes the response to an HTTP request.
     * 
     */
    private WebResponse webResponse;
    /**
     * Key/value pairs that provide additional information about the object.
     * 
     */
    private PropertyBag properties;

    /**
     * The stable, unique identifier of the rule, if any, to which this notification is relevant. This member can be used to retrieve rule metadata from the rules dictionary, if it exists.
     * 
     */
    public String getRuleId() {
        return ruleId;
    }

    /**
     * The stable, unique identifier of the rule, if any, to which this notification is relevant. This member can be used to retrieve rule metadata from the rules dictionary, if it exists.
     * 
     */
    public void setRuleId(String ruleId) {
        this.ruleId = ruleId;
    }

    public Result withRuleId(String ruleId) {
        this.ruleId = ruleId;
        return this;
    }

    /**
     * The index within the tool component rules array of the rule object associated with this result.
     * 
     */
    public Integer getRuleIndex() {
        return ruleIndex;
    }

    /**
     * The index within the tool component rules array of the rule object associated with this result.
     * 
     */
    public void setRuleIndex(Integer ruleIndex) {
        this.ruleIndex = ruleIndex;
    }

    public Result withRuleIndex(Integer ruleIndex) {
        this.ruleIndex = ruleIndex;
        return this;
    }

    /**
     * Information about how to locate a relevant reporting descriptor.
     * 
     */
    public ReportingDescriptorReference getRule() {
        return rule;
    }

    /**
     * Information about how to locate a relevant reporting descriptor.
     * 
     */
    public void setRule(ReportingDescriptorReference rule) {
        this.rule = rule;
    }

    public Result withRule(ReportingDescriptorReference rule) {
        this.rule = rule;
        return this;
    }

    /**
     * A value that categorizes results by evaluation state.
     * 
     */
    public Object getKind() {
        return kind;
    }

    /**
     * A value that categorizes results by evaluation state.
     * 
     */
    public void setKind(Object kind) {
        this.kind = kind;
    }

    public Result withKind(Object kind) {
        this.kind = kind;
        return this;
    }

    /**
     * A value specifying the severity level of the result.
     * 
     */
    public Object getLevel() {
        return level;
    }

    /**
     * A value specifying the severity level of the result.
     * 
     */
    public void setLevel(Object level) {
        this.level = level;
    }

    public Result withLevel(Object level) {
        this.level = level;
        return this;
    }

    /**
     * Encapsulates a message intended to be read by the end user.
     * (Required)
     * 
     */
    public Message getMessage() {
        return message;
    }

    /**
     * Encapsulates a message intended to be read by the end user.
     * (Required)
     * 
     */
    public void setMessage(Message message) {
        this.message = message;
    }

    public Result withMessage(Message message) {
        this.message = message;
        return this;
    }

    /**
     * Specifies the location of an artifact.
     * 
     */
    public ArtifactLocation getAnalysisTarget() {
        return analysisTarget;
    }

    /**
     * Specifies the location of an artifact.
     * 
     */
    public void setAnalysisTarget(ArtifactLocation analysisTarget) {
        this.analysisTarget = analysisTarget;
    }

    public Result withAnalysisTarget(ArtifactLocation analysisTarget) {
        this.analysisTarget = analysisTarget;
        return this;
    }

    /**
     * The set of locations where the result was detected. Specify only one location unless the problem indicated by the result can only be corrected by making a change at every specified location.
     * 
     */
    public List getLocations() {
        return locations;
    }

    /**
     * The set of locations where the result was detected. Specify only one location unless the problem indicated by the result can only be corrected by making a change at every specified location.
     * 
     */
    public void setLocations(List locations) {
        this.locations = locations;
    }

    public Result withLocations(List locations) {
        this.locations = locations;
        return this;
    }

    /**
     * A stable, unique identifer for the result in the form of a GUID.
     * 
     */
    public String getGuid() {
        return guid;
    }

    /**
     * A stable, unique identifer for the result in the form of a GUID.
     * 
     */
    public void setGuid(String guid) {
        this.guid = guid;
    }

    public Result withGuid(String guid) {
        this.guid = guid;
        return this;
    }

    /**
     * A stable, unique identifier for the equivalence class of logically identical results to which this result belongs, in the form of a GUID.
     * 
     */
    public String getCorrelationGuid() {
        return correlationGuid;
    }

    /**
     * A stable, unique identifier for the equivalence class of logically identical results to which this result belongs, in the form of a GUID.
     * 
     */
    public void setCorrelationGuid(String correlationGuid) {
        this.correlationGuid = correlationGuid;
    }

    public Result withCorrelationGuid(String correlationGuid) {
        this.correlationGuid = correlationGuid;
        return this;
    }

    /**
     * A positive integer specifying the number of times this logically unique result was observed in this run.
     * 
     */
    public Integer getOccurrenceCount() {
        return occurrenceCount;
    }

    /**
     * A positive integer specifying the number of times this logically unique result was observed in this run.
     * 
     */
    public void setOccurrenceCount(Integer occurrenceCount) {
        this.occurrenceCount = occurrenceCount;
    }

    public Result withOccurrenceCount(Integer occurrenceCount) {
        this.occurrenceCount = occurrenceCount;
        return this;
    }

    /**
     * A set of strings that contribute to the stable, unique identity of the result.
     * 
     */
    public PartialFingerprints getPartialFingerprints() {
        return partialFingerprints;
    }

    /**
     * A set of strings that contribute to the stable, unique identity of the result.
     * 
     */
    public void setPartialFingerprints(PartialFingerprints partialFingerprints) {
        this.partialFingerprints = partialFingerprints;
    }

    public Result withPartialFingerprints(PartialFingerprints partialFingerprints) {
        this.partialFingerprints = partialFingerprints;
        return this;
    }

    /**
     * A set of strings each of which individually defines a stable, unique identity for the result.
     * 
     */
    public Fingerprints getFingerprints() {
        return fingerprints;
    }

    /**
     * A set of strings each of which individually defines a stable, unique identity for the result.
     * 
     */
    public void setFingerprints(Fingerprints fingerprints) {
        this.fingerprints = fingerprints;
    }

    public Result withFingerprints(Fingerprints fingerprints) {
        this.fingerprints = fingerprints;
        return this;
    }

    /**
     * An array of 'stack' objects relevant to the result.
     * 
     */
    public Set getStacks() {
        return stacks;
    }

    /**
     * An array of 'stack' objects relevant to the result.
     * 
     */
    public void setStacks(Set stacks) {
        this.stacks = stacks;
    }

    public Result withStacks(Set stacks) {
        this.stacks = stacks;
        return this;
    }

    /**
     * An array of 'codeFlow' objects relevant to the result.
     * 
     */
    public List getCodeFlows() {
        return codeFlows;
    }

    /**
     * An array of 'codeFlow' objects relevant to the result.
     * 
     */
    public void setCodeFlows(List codeFlows) {
        this.codeFlows = codeFlows;
    }

    public Result withCodeFlows(List codeFlows) {
        this.codeFlows = codeFlows;
        return this;
    }

    /**
     * An array of zero or more unique graph objects associated with the result.
     * 
     */
    public Set getGraphs() {
        return graphs;
    }

    /**
     * An array of zero or more unique graph objects associated with the result.
     * 
     */
    public void setGraphs(Set graphs) {
        this.graphs = graphs;
    }

    public Result withGraphs(Set graphs) {
        this.graphs = graphs;
        return this;
    }

    /**
     * An array of one or more unique 'graphTraversal' objects.
     * 
     */
    public Set getGraphTraversals() {
        return graphTraversals;
    }

    /**
     * An array of one or more unique 'graphTraversal' objects.
     * 
     */
    public void setGraphTraversals(Set graphTraversals) {
        this.graphTraversals = graphTraversals;
    }

    public Result withGraphTraversals(Set graphTraversals) {
        this.graphTraversals = graphTraversals;
        return this;
    }

    /**
     * A set of locations relevant to this result.
     * 
     */
    public Set getRelatedLocations() {
        return relatedLocations;
    }

    /**
     * A set of locations relevant to this result.
     * 
     */
    public void setRelatedLocations(Set relatedLocations) {
        this.relatedLocations = relatedLocations;
    }

    public Result withRelatedLocations(Set relatedLocations) {
        this.relatedLocations = relatedLocations;
        return this;
    }

    /**
     * A set of suppressions relevant to this result.
     * 
     */
    public Set getSuppressions() {
        return suppressions;
    }

    /**
     * A set of suppressions relevant to this result.
     * 
     */
    public void setSuppressions(Set suppressions) {
        this.suppressions = suppressions;
    }

    public Result withSuppressions(Set suppressions) {
        this.suppressions = suppressions;
        return this;
    }

    /**
     * The state of a result relative to a baseline of a previous run.
     * 
     */
    public Result.BaselineState getBaselineState() {
        return baselineState;
    }

    /**
     * The state of a result relative to a baseline of a previous run.
     * 
     */
    public void setBaselineState(Result.BaselineState baselineState) {
        this.baselineState = baselineState;
    }

    public Result withBaselineState(Result.BaselineState baselineState) {
        this.baselineState = baselineState;
        return this;
    }

    /**
     * A number representing the priority or importance of the result.
     * 
     */
    public Double getRank() {
        return rank;
    }

    /**
     * A number representing the priority or importance of the result.
     * 
     */
    public void setRank(Double rank) {
        this.rank = rank;
    }

    public Result withRank(Double rank) {
        this.rank = rank;
        return this;
    }

    /**
     * A set of artifacts relevant to the result.
     * 
     */
    public Set getAttachments() {
        return attachments;
    }

    /**
     * A set of artifacts relevant to the result.
     * 
     */
    public void setAttachments(Set attachments) {
        this.attachments = attachments;
    }

    public Result withAttachments(Set attachments) {
        this.attachments = attachments;
        return this;
    }

    /**
     * An absolute URI at which the result can be viewed.
     * 
     */
    public URI getHostedViewerUri() {
        return hostedViewerUri;
    }

    /**
     * An absolute URI at which the result can be viewed.
     * 
     */
    public void setHostedViewerUri(URI hostedViewerUri) {
        this.hostedViewerUri = hostedViewerUri;
    }

    public Result withHostedViewerUri(URI hostedViewerUri) {
        this.hostedViewerUri = hostedViewerUri;
        return this;
    }

    /**
     * The URIs of the work items associated with this result.
     * 
     */
    public Set getWorkItemUris() {
        return workItemUris;
    }

    /**
     * The URIs of the work items associated with this result.
     * 
     */
    public void setWorkItemUris(Set workItemUris) {
        this.workItemUris = workItemUris;
    }

    public Result withWorkItemUris(Set workItemUris) {
        this.workItemUris = workItemUris;
        return this;
    }

    /**
     * Contains information about how and when a result was detected.
     * 
     */
    public ResultProvenance getProvenance() {
        return provenance;
    }

    /**
     * Contains information about how and when a result was detected.
     * 
     */
    public void setProvenance(ResultProvenance provenance) {
        this.provenance = provenance;
    }

    public Result withProvenance(ResultProvenance provenance) {
        this.provenance = provenance;
        return this;
    }

    /**
     * An array of 'fix' objects, each of which represents a proposed fix to the problem indicated by the result.
     * 
     */
    public Set getFixes() {
        return fixes;
    }

    /**
     * An array of 'fix' objects, each of which represents a proposed fix to the problem indicated by the result.
     * 
     */
    public void setFixes(Set fixes) {
        this.fixes = fixes;
    }

    public Result withFixes(Set fixes) {
        this.fixes = fixes;
        return this;
    }

    /**
     * An array of references to taxonomy reporting descriptors that are applicable to the result.
     * 
     */
    public Set getTaxa() {
        return taxa;
    }

    /**
     * An array of references to taxonomy reporting descriptors that are applicable to the result.
     * 
     */
    public void setTaxa(Set taxa) {
        this.taxa = taxa;
    }

    public Result withTaxa(Set taxa) {
        this.taxa = taxa;
        return this;
    }

    /**
     * Describes an HTTP request.
     * 
     */
    public WebRequest getWebRequest() {
        return webRequest;
    }

    /**
     * Describes an HTTP request.
     * 
     */
    public void setWebRequest(WebRequest webRequest) {
        this.webRequest = webRequest;
    }

    public Result withWebRequest(WebRequest webRequest) {
        this.webRequest = webRequest;
        return this;
    }

    /**
     * Describes the response to an HTTP request.
     * 
     */
    public WebResponse getWebResponse() {
        return webResponse;
    }

    /**
     * Describes the response to an HTTP request.
     * 
     */
    public void setWebResponse(WebResponse webResponse) {
        this.webResponse = webResponse;
    }

    public Result withWebResponse(WebResponse webResponse) {
        this.webResponse = webResponse;
        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 Result withProperties(PropertyBag properties) {
        this.properties = properties;
        return this;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(Result.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
        sb.append("ruleId");
        sb.append('=');
        sb.append(((this.ruleId == null)?"":this.ruleId));
        sb.append(',');
        sb.append("ruleIndex");
        sb.append('=');
        sb.append(((this.ruleIndex == null)?"":this.ruleIndex));
        sb.append(',');
        sb.append("rule");
        sb.append('=');
        sb.append(((this.rule == null)?"":this.rule));
        sb.append(',');
        sb.append("kind");
        sb.append('=');
        sb.append(((this.kind == null)?"":this.kind));
        sb.append(',');
        sb.append("level");
        sb.append('=');
        sb.append(((this.level == null)?"":this.level));
        sb.append(',');
        sb.append("message");
        sb.append('=');
        sb.append(((this.message == null)?"":this.message));
        sb.append(',');
        sb.append("analysisTarget");
        sb.append('=');
        sb.append(((this.analysisTarget == null)?"":this.analysisTarget));
        sb.append(',');
        sb.append("locations");
        sb.append('=');
        sb.append(((this.locations == null)?"":this.locations));
        sb.append(',');
        sb.append("guid");
        sb.append('=');
        sb.append(((this.guid == null)?"":this.guid));
        sb.append(',');
        sb.append("correlationGuid");
        sb.append('=');
        sb.append(((this.correlationGuid == null)?"":this.correlationGuid));
        sb.append(',');
        sb.append("occurrenceCount");
        sb.append('=');
        sb.append(((this.occurrenceCount == null)?"":this.occurrenceCount));
        sb.append(',');
        sb.append("partialFingerprints");
        sb.append('=');
        sb.append(((this.partialFingerprints == null)?"":this.partialFingerprints));
        sb.append(',');
        sb.append("fingerprints");
        sb.append('=');
        sb.append(((this.fingerprints == null)?"":this.fingerprints));
        sb.append(',');
        sb.append("stacks");
        sb.append('=');
        sb.append(((this.stacks == null)?"":this.stacks));
        sb.append(',');
        sb.append("codeFlows");
        sb.append('=');
        sb.append(((this.codeFlows == null)?"":this.codeFlows));
        sb.append(',');
        sb.append("graphs");
        sb.append('=');
        sb.append(((this.graphs == null)?"":this.graphs));
        sb.append(',');
        sb.append("graphTraversals");
        sb.append('=');
        sb.append(((this.graphTraversals == null)?"":this.graphTraversals));
        sb.append(',');
        sb.append("relatedLocations");
        sb.append('=');
        sb.append(((this.relatedLocations == null)?"":this.relatedLocations));
        sb.append(',');
        sb.append("suppressions");
        sb.append('=');
        sb.append(((this.suppressions == null)?"":this.suppressions));
        sb.append(',');
        sb.append("baselineState");
        sb.append('=');
        sb.append(((this.baselineState == null)?"":this.baselineState));
        sb.append(',');
        sb.append("rank");
        sb.append('=');
        sb.append(((this.rank == null)?"":this.rank));
        sb.append(',');
        sb.append("attachments");
        sb.append('=');
        sb.append(((this.attachments == null)?"":this.attachments));
        sb.append(',');
        sb.append("hostedViewerUri");
        sb.append('=');
        sb.append(((this.hostedViewerUri == null)?"":this.hostedViewerUri));
        sb.append(',');
        sb.append("workItemUris");
        sb.append('=');
        sb.append(((this.workItemUris == null)?"":this.workItemUris));
        sb.append(',');
        sb.append("provenance");
        sb.append('=');
        sb.append(((this.provenance == null)?"":this.provenance));
        sb.append(',');
        sb.append("fixes");
        sb.append('=');
        sb.append(((this.fixes == null)?"":this.fixes));
        sb.append(',');
        sb.append("taxa");
        sb.append('=');
        sb.append(((this.taxa == null)?"":this.taxa));
        sb.append(',');
        sb.append("webRequest");
        sb.append('=');
        sb.append(((this.webRequest == null)?"":this.webRequest));
        sb.append(',');
        sb.append("webResponse");
        sb.append('=');
        sb.append(((this.webResponse == null)?"":this.webResponse));
        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.attachments == null)? 0 :this.attachments.hashCode()));
        result = ((result* 31)+((this.correlationGuid == null)? 0 :this.correlationGuid.hashCode()));
        result = ((result* 31)+((this.webRequest == null)? 0 :this.webRequest.hashCode()));
        result = ((result* 31)+((this.graphTraversals == null)? 0 :this.graphTraversals.hashCode()));
        result = ((result* 31)+((this.rule == null)? 0 :this.rule.hashCode()));
        result = ((result* 31)+((this.analysisTarget == null)? 0 :this.analysisTarget.hashCode()));
        result = ((result* 31)+((this.fixes == null)? 0 :this.fixes.hashCode()));
        result = ((result* 31)+((this.relatedLocations == null)? 0 :this.relatedLocations.hashCode()));
        result = ((result* 31)+((this.graphs == null)? 0 :this.graphs.hashCode()));
        result = ((result* 31)+((this.provenance == null)? 0 :this.provenance.hashCode()));
        result = ((result* 31)+((this.rank == null)? 0 :this.rank.hashCode()));
        result = ((result* 31)+((this.ruleId == null)? 0 :this.ruleId.hashCode()));
        result = ((result* 31)+((this.taxa == null)? 0 :this.taxa.hashCode()));
        result = ((result* 31)+((this.ruleIndex == null)? 0 :this.ruleIndex.hashCode()));
        result = ((result* 31)+((this.suppressions == null)? 0 :this.suppressions.hashCode()));
        result = ((result* 31)+((this.level == null)? 0 :this.level.hashCode()));
        result = ((result* 31)+((this.hostedViewerUri == null)? 0 :this.hostedViewerUri.hashCode()));
        result = ((result* 31)+((this.kind == null)? 0 :this.kind.hashCode()));
        result = ((result* 31)+((this.stacks == null)? 0 :this.stacks.hashCode()));
        result = ((result* 31)+((this.occurrenceCount == null)? 0 :this.occurrenceCount.hashCode()));
        result = ((result* 31)+((this.message == null)? 0 :this.message.hashCode()));
        result = ((result* 31)+((this.fingerprints == null)? 0 :this.fingerprints.hashCode()));
        result = ((result* 31)+((this.codeFlows == null)? 0 :this.codeFlows.hashCode()));
        result = ((result* 31)+((this.guid == null)? 0 :this.guid.hashCode()));
        result = ((result* 31)+((this.partialFingerprints == null)? 0 :this.partialFingerprints.hashCode()));
        result = ((result* 31)+((this.webResponse == null)? 0 :this.webResponse.hashCode()));
        result = ((result* 31)+((this.locations == null)? 0 :this.locations.hashCode()));
        result = ((result* 31)+((this.baselineState == null)? 0 :this.baselineState.hashCode()));
        result = ((result* 31)+((this.workItemUris == null)? 0 :this.workItemUris.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 Result) == false) {
            return false;
        }
        Result rhs = ((Result) other);
        return (((((((((((((((((((((((((((((((this.attachments == rhs.attachments)||((this.attachments!= null)&&this.attachments.equals(rhs.attachments)))&&((this.correlationGuid == rhs.correlationGuid)||((this.correlationGuid!= null)&&this.correlationGuid.equals(rhs.correlationGuid))))&&((this.webRequest == rhs.webRequest)||((this.webRequest!= null)&&this.webRequest.equals(rhs.webRequest))))&&((this.graphTraversals == rhs.graphTraversals)||((this.graphTraversals!= null)&&this.graphTraversals.equals(rhs.graphTraversals))))&&((this.rule == rhs.rule)||((this.rule!= null)&&this.rule.equals(rhs.rule))))&&((this.analysisTarget == rhs.analysisTarget)||((this.analysisTarget!= null)&&this.analysisTarget.equals(rhs.analysisTarget))))&&((this.fixes == rhs.fixes)||((this.fixes!= null)&&this.fixes.equals(rhs.fixes))))&&((this.relatedLocations == rhs.relatedLocations)||((this.relatedLocations!= null)&&this.relatedLocations.equals(rhs.relatedLocations))))&&((this.graphs == rhs.graphs)||((this.graphs!= null)&&this.graphs.equals(rhs.graphs))))&&((this.provenance == rhs.provenance)||((this.provenance!= null)&&this.provenance.equals(rhs.provenance))))&&((this.rank == rhs.rank)||((this.rank!= null)&&this.rank.equals(rhs.rank))))&&((this.ruleId == rhs.ruleId)||((this.ruleId!= null)&&this.ruleId.equals(rhs.ruleId))))&&((this.taxa == rhs.taxa)||((this.taxa!= null)&&this.taxa.equals(rhs.taxa))))&&((this.ruleIndex == rhs.ruleIndex)||((this.ruleIndex!= null)&&this.ruleIndex.equals(rhs.ruleIndex))))&&((this.suppressions == rhs.suppressions)||((this.suppressions!= null)&&this.suppressions.equals(rhs.suppressions))))&&((this.level == rhs.level)||((this.level!= null)&&this.level.equals(rhs.level))))&&((this.hostedViewerUri == rhs.hostedViewerUri)||((this.hostedViewerUri!= null)&&this.hostedViewerUri.equals(rhs.hostedViewerUri))))&&((this.kind == rhs.kind)||((this.kind!= null)&&this.kind.equals(rhs.kind))))&&((this.stacks == rhs.stacks)||((this.stacks!= null)&&this.stacks.equals(rhs.stacks))))&&((this.occurrenceCount == rhs.occurrenceCount)||((this.occurrenceCount!= null)&&this.occurrenceCount.equals(rhs.occurrenceCount))))&&((this.message == rhs.message)||((this.message!= null)&&this.message.equals(rhs.message))))&&((this.fingerprints == rhs.fingerprints)||((this.fingerprints!= null)&&this.fingerprints.equals(rhs.fingerprints))))&&((this.codeFlows == rhs.codeFlows)||((this.codeFlows!= null)&&this.codeFlows.equals(rhs.codeFlows))))&&((this.guid == rhs.guid)||((this.guid!= null)&&this.guid.equals(rhs.guid))))&&((this.partialFingerprints == rhs.partialFingerprints)||((this.partialFingerprints!= null)&&this.partialFingerprints.equals(rhs.partialFingerprints))))&&((this.webResponse == rhs.webResponse)||((this.webResponse!= null)&&this.webResponse.equals(rhs.webResponse))))&&((this.locations == rhs.locations)||((this.locations!= null)&&this.locations.equals(rhs.locations))))&&((this.baselineState == rhs.baselineState)||((this.baselineState!= null)&&this.baselineState.equals(rhs.baselineState))))&&((this.workItemUris == rhs.workItemUris)||((this.workItemUris!= null)&&this.workItemUris.equals(rhs.workItemUris))))&&((this.properties == rhs.properties)||((this.properties!= null)&&this.properties.equals(rhs.properties))));
    }


    /**
     * The state of a result relative to a baseline of a previous run.
     * 
     */
    public enum BaselineState {

        NEW("new"),
        UNCHANGED("unchanged"),
        UPDATED("updated"),
        ABSENT("absent");
        private final String value;
        private final static Map CONSTANTS = new HashMap();

        static {
            for (Result.BaselineState c: values()) {
                CONSTANTS.put(c.value, c);
            }
        }

        BaselineState(String value) {
            this.value = value;
        }

        @Override
        public String toString() {
            return this.value;
        }

        public String value() {
            return this.value;
        }

        public static Result.BaselineState fromValue(String value) {
            Result.BaselineState constant = CONSTANTS.get(value);
            if (constant == null) {
                throw new IllegalArgumentException(value);
            } else {
                return constant;
            }
        }

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy