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 Details

    • Result

      public Result()
    • Result

      public Result(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
    • getRuleId

      public String getRuleId()
    • setRuleId

      public void setRuleId(String value)
    • getRuleIndex

      public BigInteger getRuleIndex()
    • setRuleIndex

      public void setRuleIndex(BigInteger value)
    • getGuid

      public UUID getGuid()
    • setGuid

      public void setGuid(UUID value)
    • getRule

      public ReportingDescriptorReference getRule()
    • setRule

      public void setRule(ReportingDescriptorReference value)
    • getKind

      public String getKind()
    • setKind

      public void setKind(String value)
    • getLevel

      public String getLevel()
    • setLevel

      public void setLevel(String value)
    • getMessage

      public Message getMessage()
    • setMessage

      public void setMessage(Message value)
    • getAnalysisTarget

      public ArtifactLocation getAnalysisTarget()
    • setAnalysisTarget

      public void setAnalysisTarget(ArtifactLocation value)
    • getLocations

      public List<Location> getLocations()
    • setLocations

      public void setLocations(List<Location> value)
    • addLocation

      public boolean addLocation(Location item)
      Add a new Location item to the underlying collection.
      Parameters:
      item - the item to add
      Returns:
      true
    • removeLocation

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

      public BigInteger getOccurenceCount()
    • setOccurenceCount

      public void setOccurenceCount(BigInteger value)
    • getRelatedLocation

      public Location getRelatedLocation()
    • setRelatedLocation

      public void setRelatedLocation(Location value)
    • getProvenance

      public ResultProvenance getProvenance()
    • setProvenance

      public void setProvenance(ResultProvenance value)
    • toString

      public String toString()
      Overrides:
      toString in class Object