Package org.schemastore.json.sarif.x210
Class Result
java.lang.Object
org.schemastore.json.sarif.x210.Result
- All Implemented Interfaces:
gov.nist.secauto.metaschema.core.model.IBoundObject
@MetaschemaAssembly(formalName="Results",
description="Results from the run of a tool.",
name="result",
moduleClass=SarifModule.class,
valueConstraints=@ValueConstraints(expect=@Expect(level=ERROR,test="@ruleIndex >= -1",message="The value \'{ . }\' is not greater than or equal to \'-1\'.")))
public class Result
extends Object
implements gov.nist.secauto.metaschema.core.model.IBoundObject
Results from the run of a tool.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addLocation
(Location item) Add a newLocation
item to the underlying collection.getGuid()
getKind()
getLevel()
gov.nist.secauto.metaschema.core.model.IMetaschemaData
getRule()
boolean
removeLocation
(Location item) Remove the first matchingLocation
item from the underlying collection.void
void
void
void
void
setLocations
(List<Location> value) void
setMessage
(Message value) void
setOccurenceCount
(BigInteger value) void
setProvenance
(ResultProvenance value) void
setRelatedLocation
(Location value) void
void
void
setRuleIndex
(BigInteger value) toString()
-
Constructor Details
-
Result
public Result() -
Result
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaData
in interfacegov.nist.secauto.metaschema.core.model.IBoundObject
-
getRuleId
-
setRuleId
-
getRuleIndex
-
setRuleIndex
-
getGuid
-
setGuid
-
getRule
-
setRule
-
getKind
-
setKind
-
getLevel
-
setLevel
-
getMessage
-
setMessage
-
getAnalysisTarget
-
setAnalysisTarget
-
getLocations
-
setLocations
-
addLocation
Add a newLocation
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeLocation
Remove the first matchingLocation
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getOccurenceCount
-
setOccurenceCount
-
getRelatedLocation
-
setRelatedLocation
-
getProvenance
-
setProvenance
-
toString
-