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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddArgument(String item) Add a newStringitem to the underlying collection.getId()gov.nist.secauto.metaschema.core.model.IMetaschemaDatagetText()booleanremoveArgument(String item) Remove the first matchingStringitem from the underlying collection.voidsetArguments(List<String> value) voidvoidsetMarkdown(String value) voidtoString()
-
Constructor Details
-
Message
public Message() -
Message
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacegov.nist.secauto.metaschema.core.model.IBoundObject
-
getId
-
setId
-
getText
-
setText
-
getMarkdown
-
setMarkdown
-
getArguments
-
setArguments
-
addArgument
Add a newStringitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeArgument
Remove the first matchingStringitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
toString
-