Package org.schemastore.json.sarif.x210
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addArgument
(String item) Add a newString
item to the underlying collection.getId()
gov.nist.secauto.metaschema.core.model.IMetaschemaData
getText()
boolean
removeArgument
(String item) Remove the first matchingString
item from the underlying collection.void
setArguments
(List<String> value) void
void
setMarkdown
(String value) void
toString()
-
Constructor Details
-
Message
public Message() -
Message
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaData
in interfacegov.nist.secauto.metaschema.core.model.IBoundObject
-
getId
-
setId
-
getText
-
setText
-
getMarkdown
-
setMarkdown
-
getArguments
-
setArguments
-
addArgument
Add a newString
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeArgument
Remove the first matchingString
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
toString
-