Created
September 5, 2020 22:00
-
-
Save KengoTODA/357e483984c8ed5442da7ed4b7331907 to your computer and use it in GitHub Desktop.
Generated by https://github.com/eirnym/js2p-gradle from SARIF 2.1.0 schema
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package edu.umd.cs.findbugs.sarif; | |
import java.util.HashMap; | |
import java.util.Map; | |
import com.fasterxml.jackson.annotation.JsonAnyGetter; | |
import com.fasterxml.jackson.annotation.JsonAnySetter; | |
import com.fasterxml.jackson.annotation.JsonIgnore; | |
import com.fasterxml.jackson.annotation.JsonInclude; | |
import com.fasterxml.jackson.annotation.JsonPropertyOrder; | |
/** | |
* A set of name/value pairs with arbitrary names. Each value is a multiformatMessageString object, which holds message strings in plain text and (optionally) Markdown format. The strings can include placeholders, which can be used to construct a message in combination with an arbitrary number of additional string arguments. | |
* | |
*/ | |
@JsonInclude(JsonInclude.Include.NON_NULL) | |
@JsonPropertyOrder({ | |
}) | |
public class MessageStrings { | |
@JsonIgnore | |
private Map<String, MultiformatMessageString> additionalProperties = new HashMap<String, MultiformatMessageString>(); | |
@JsonAnyGetter | |
public Map<String, MultiformatMessageString> getAdditionalProperties() { | |
return this.additionalProperties; | |
} | |
@JsonAnySetter | |
public void setAdditionalProperty(String name, MultiformatMessageString value) { | |
this.additionalProperties.put(name, value); | |
} | |
public MessageStrings withAdditionalProperty(String name, MultiformatMessageString value) { | |
this.additionalProperties.put(name, value); | |
return this; | |
} | |
@Override | |
public String toString() { | |
StringBuilder sb = new StringBuilder(); | |
sb.append(MessageStrings.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('['); | |
sb.append("additionalProperties"); | |
sb.append('='); | |
sb.append(((this.additionalProperties == null)?"<null>":this.additionalProperties)); | |
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.additionalProperties == null)? 0 :this.additionalProperties.hashCode())); | |
return result; | |
} | |
@Override | |
public boolean equals(Object other) { | |
if (other == this) { | |
return true; | |
} | |
if ((other instanceof MessageStrings) == false) { | |
return false; | |
} | |
MessageStrings rhs = ((MessageStrings) other); | |
return ((this.additionalProperties == rhs.additionalProperties)||((this.additionalProperties!= null)&&this.additionalProperties.equals(rhs.additionalProperties))); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment