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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddLocation(Location item) Add a newLocationitem to the underlying collection.getGuid()getKind()getLevel()gov.nist.secauto.metaschema.core.model.IMetaschemaDatagetRule()booleanremoveLocation(Location item) Remove the first matchingLocationitem from the underlying collection.voidvoidvoidvoidvoidsetLocations(List<Location> value) voidsetMessage(Message value) voidsetOccurenceCount(BigInteger value) voidsetProvenance(ResultProvenance value) voidsetRelatedLocation(Location value) voidvoidvoidsetRuleIndex(BigInteger value) toString()
-
Constructor Details
-
Result
public Result() -
Result
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain 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 newLocationitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeLocation
Remove the first matchingLocationitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getOccurenceCount
-
setOccurenceCount
-
getRelatedLocation
-
setRelatedLocation
-
getProvenance
-
setProvenance
-
toString
-