Class Message

java.lang.Object
org.schemastore.json.sarif.x210.Message
All Implemented Interfaces:
gov.nist.secauto.metaschema.core.model.IBoundObject

@MetaschemaAssembly(formalName="Message", description="Encapsulates a message intended to be read by the end user.", name="message", moduleClass=SarifModule.class, valueConstraints=@ValueConstraints(expect=@Expect(level=ERROR,test="exists(@id|text)",message="At least one id or text must be provided."))) public class Message extends Object implements gov.nist.secauto.metaschema.core.model.IBoundObject
Encapsulates a message intended to be read by the end user.
  • Constructor Details

    • Message

      public Message()
    • Message

      public Message(gov.nist.secauto.metaschema.core.model.IMetaschemaData data)
  • Method Details

    • getMetaschemaData

      public gov.nist.secauto.metaschema.core.model.IMetaschemaData getMetaschemaData()
      Specified by:
      getMetaschemaData in interface gov.nist.secauto.metaschema.core.model.IBoundObject
    • getId

      public String getId()
    • setId

      public void setId(String value)
    • getText

      public String getText()
    • setText

      public void setText(String value)
    • getMarkdown

      public String getMarkdown()
    • setMarkdown

      public void setMarkdown(String value)
    • getArguments

      public List<String> getArguments()
    • setArguments

      public void setArguments(List<String> value)
    • addArgument

      public boolean addArgument(String item)
      Add a new String item to the underlying collection.
      Parameters:
      item - the item to add
      Returns:
      true
    • removeArgument

      public boolean removeArgument(String item)
      Remove the first matching String item from the underlying collection.
      Parameters:
      item - the item to remove
      Returns:
      true if the item was removed or false otherwise
    • toString

      public String toString()
      Overrides:
      toString in class Object