MultiformatMessageString.java
package org.schemastore.json.sarif.x210;
import gov.nist.secauto.metaschema.core.model.IBoundObject;
import gov.nist.secauto.metaschema.core.model.IMetaschemaData;
import gov.nist.secauto.metaschema.databind.model.annotations.BoundField;
import gov.nist.secauto.metaschema.databind.model.annotations.MetaschemaAssembly;
import java.lang.Override;
import java.lang.String;
import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* A message string or message format string rendered in multiple formats.
*/
@MetaschemaAssembly(
formalName = "Multi-format Message String",
description = "A message string or message format string rendered in multiple formats.",
name = "multiformatMessageString",
moduleClass = SarifModule.class
)
public class MultiformatMessageString implements IBoundObject {
private final IMetaschemaData __metaschemaData;
@BoundField(
formalName = "Text",
description = "A plain text message string or format string.",
useName = "text",
minOccurs = 1
)
private String _text;
@BoundField(
formalName = "Markdown",
description = "A Markdown message string or format string.",
useName = "markdown"
)
private String _markdown;
public MultiformatMessageString() {
this(null);
}
public MultiformatMessageString(IMetaschemaData data) {
this.__metaschemaData = data;
}
@Override
public IMetaschemaData getMetaschemaData() {
return __metaschemaData;
}
public String getText() {
return _text;
}
public void setText(String value) {
_text = value;
}
public String getMarkdown() {
return _markdown;
}
public void setMarkdown(String value) {
_markdown = value;
}
@Override
public String toString() {
return new ReflectionToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).toString();
}
}