001package org.schemastore.json.sarif.x210;
002
003import gov.nist.secauto.metaschema.core.model.IBoundObject;
004import gov.nist.secauto.metaschema.core.model.IMetaschemaData;
005import gov.nist.secauto.metaschema.databind.model.annotations.BoundField;
006import gov.nist.secauto.metaschema.databind.model.annotations.MetaschemaAssembly;
007import java.lang.Override;
008import java.lang.String;
009import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
010import org.apache.commons.lang3.builder.ToStringStyle;
011
012/**
013 * A message string or message format string rendered in multiple formats.
014 */
015@MetaschemaAssembly(
016    formalName = "Multi-format Message String",
017    description = "A message string or message format string rendered in multiple formats.",
018    name = "multiformatMessageString",
019    moduleClass = SarifModule.class
020)
021public class MultiformatMessageString implements IBoundObject {
022  private final IMetaschemaData __metaschemaData;
023
024  @BoundField(
025      formalName = "Text",
026      description = "A plain text message string or format string.",
027      useName = "text",
028      minOccurs = 1
029  )
030  private String _text;
031
032  @BoundField(
033      formalName = "Markdown",
034      description = "A Markdown message string or format string.",
035      useName = "markdown"
036  )
037  private String _markdown;
038
039  public MultiformatMessageString() {
040    this(null);
041  }
042
043  public MultiformatMessageString(IMetaschemaData data) {
044    this.__metaschemaData = data;
045  }
046
047  @Override
048  public IMetaschemaData getMetaschemaData() {
049    return __metaschemaData;
050  }
051
052  public String getText() {
053    return _text;
054  }
055
056  public void setText(String value) {
057    _text = value;
058  }
059
060  public String getMarkdown() {
061    return _markdown;
062  }
063
064  public void setMarkdown(String value) {
065    _markdown = value;
066  }
067
068  @Override
069  public String toString() {
070    return new ReflectionToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).toString();
071  }
072}