Class Result
java.lang.Object
se.bjurr.violations.lib.model.generated.sarif.Result
A result produced by an analysis tool.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe state of a result relative to a baseline of a previous run. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanSpecifies the location of an artifact.A set of artifacts relevant to the result.The state of a result relative to a baseline of a previous run.An array of 'codeFlow' objects relevant to the result.A stable, unique identifier for the equivalence class of logically identical results to which this result belongs, in the form of a GUID.A set of strings each of which individually defines a stable, unique identity for the result.getFixes()An array of 'fix' objects, each of which represents a proposed fix to the problem indicated by the result.An array of zero or more unique graph objects associated with the result.An array of one or more unique 'graphTraversal' objects.getGuid()A stable, unique identifer for the result in the form of a GUID.An absolute URI at which the result can be viewed.getKind()A value that categorizes results by evaluation state.getLevel()A value specifying the severity level of the result.The set of locations where the result was detected.Encapsulates a message intended to be read by the end user.A positive integer specifying the number of times this logically unique result was observed in this run.A set of strings that contribute to the stable, unique identity of the result.Key/value pairs that provide additional information about the object.Contains information about how and when a result was detected.getRank()A number representing the priority or importance of the result.A set of locations relevant to this result.getRule()Information about how to locate a relevant reporting descriptor.The stable, unique identifier of the rule, if any, to which this notification is relevant.The index within the tool component rules array of the rule object associated with this result.An array of 'stack' objects relevant to the result.A set of suppressions relevant to this result.getTaxa()An array of references to taxonomy reporting descriptors that are applicable to the result.Describes an HTTP request.Describes the response to an HTTP request.The URIs of the work items associated with this result.inthashCode()voidsetAnalysisTarget(ArtifactLocation analysisTarget) Specifies the location of an artifact.voidsetAttachments(Set<Attachment> attachments) A set of artifacts relevant to the result.voidsetBaselineState(Result.BaselineState baselineState) The state of a result relative to a baseline of a previous run.voidsetCodeFlows(List<CodeFlow> codeFlows) An array of 'codeFlow' objects relevant to the result.voidsetCorrelationGuid(String correlationGuid) A stable, unique identifier for the equivalence class of logically identical results to which this result belongs, in the form of a GUID.voidsetFingerprints(Fingerprints fingerprints) A set of strings each of which individually defines a stable, unique identity for the result.voidAn array of 'fix' objects, each of which represents a proposed fix to the problem indicated by the result.voidAn array of zero or more unique graph objects associated with the result.voidsetGraphTraversals(Set<GraphTraversal> graphTraversals) An array of one or more unique 'graphTraversal' objects.voidA stable, unique identifer for the result in the form of a GUID.voidsetHostedViewerUri(URI hostedViewerUri) An absolute URI at which the result can be viewed.voidA value that categorizes results by evaluation state.voidA value specifying the severity level of the result.voidsetLocations(List<Location> locations) The set of locations where the result was detected.voidsetMessage(Message message) Encapsulates a message intended to be read by the end user.voidsetOccurrenceCount(Integer occurrenceCount) A positive integer specifying the number of times this logically unique result was observed in this run.voidsetPartialFingerprints(PartialFingerprints partialFingerprints) A set of strings that contribute to the stable, unique identity of the result.voidsetProperties(PropertyBag properties) Key/value pairs that provide additional information about the object.voidsetProvenance(ResultProvenance provenance) Contains information about how and when a result was detected.voidA number representing the priority or importance of the result.voidsetRelatedLocations(Set<Location> relatedLocations) A set of locations relevant to this result.voidInformation about how to locate a relevant reporting descriptor.voidThe stable, unique identifier of the rule, if any, to which this notification is relevant.voidsetRuleIndex(Integer ruleIndex) The index within the tool component rules array of the rule object associated with this result.voidAn array of 'stack' objects relevant to the result.voidsetSuppressions(Set<Suppression> suppressions) A set of suppressions relevant to this result.voidAn array of references to taxonomy reporting descriptors that are applicable to the result.voidsetWebRequest(WebRequest webRequest) Describes an HTTP request.voidsetWebResponse(WebResponse webResponse) Describes the response to an HTTP request.voidsetWorkItemUris(Set<URI> workItemUris) The URIs of the work items associated with this result.toString()withAnalysisTarget(ArtifactLocation analysisTarget) withAttachments(Set<Attachment> attachments) withBaselineState(Result.BaselineState baselineState) withCodeFlows(List<CodeFlow> codeFlows) withCorrelationGuid(String correlationGuid) withFingerprints(Fingerprints fingerprints) withGraphs(Set<Graph> graphs) withGraphTraversals(Set<GraphTraversal> graphTraversals) withHostedViewerUri(URI hostedViewerUri) withLocations(List<Location> locations) withMessage(Message message) withOccurrenceCount(Integer occurrenceCount) withPartialFingerprints(PartialFingerprints partialFingerprints) withProperties(PropertyBag properties) withProvenance(ResultProvenance provenance) withRelatedLocations(Set<Location> relatedLocations) withRuleId(String ruleId) withRuleIndex(Integer ruleIndex) withStacks(Set<Stack> stacks) withSuppressions(Set<Suppression> suppressions) withWebRequest(WebRequest webRequest) withWebResponse(WebResponse webResponse) withWorkItemUris(Set<URI> workItemUris)
-
Constructor Details
-
Result
public Result()
-
-
Method Details
-
getRuleId
The stable, unique identifier of the rule, if any, to which this notification is relevant. This member can be used to retrieve rule metadata from the rules dictionary, if it exists. -
setRuleId
The stable, unique identifier of the rule, if any, to which this notification is relevant. This member can be used to retrieve rule metadata from the rules dictionary, if it exists. -
withRuleId
-
getRuleIndex
The index within the tool component rules array of the rule object associated with this result. -
setRuleIndex
The index within the tool component rules array of the rule object associated with this result. -
withRuleIndex
-
getRule
Information about how to locate a relevant reporting descriptor. -
setRule
Information about how to locate a relevant reporting descriptor. -
withRule
-
getKind
A value that categorizes results by evaluation state. -
setKind
A value that categorizes results by evaluation state. -
withKind
-
getLevel
A value specifying the severity level of the result. -
setLevel
A value specifying the severity level of the result. -
withLevel
-
getMessage
Encapsulates a message intended to be read by the end user. (Required) -
setMessage
Encapsulates a message intended to be read by the end user. (Required) -
withMessage
-
getAnalysisTarget
Specifies the location of an artifact. -
setAnalysisTarget
Specifies the location of an artifact. -
withAnalysisTarget
-
getLocations
The set of locations where the result was detected. Specify only one location unless the problem indicated by the result can only be corrected by making a change at every specified location. -
setLocations
The set of locations where the result was detected. Specify only one location unless the problem indicated by the result can only be corrected by making a change at every specified location. -
withLocations
-
getGuid
A stable, unique identifer for the result in the form of a GUID. -
setGuid
A stable, unique identifer for the result in the form of a GUID. -
withGuid
-
getCorrelationGuid
A stable, unique identifier for the equivalence class of logically identical results to which this result belongs, in the form of a GUID. -
setCorrelationGuid
A stable, unique identifier for the equivalence class of logically identical results to which this result belongs, in the form of a GUID. -
withCorrelationGuid
-
getOccurrenceCount
A positive integer specifying the number of times this logically unique result was observed in this run. -
setOccurrenceCount
A positive integer specifying the number of times this logically unique result was observed in this run. -
withOccurrenceCount
-
getPartialFingerprints
A set of strings that contribute to the stable, unique identity of the result. -
setPartialFingerprints
A set of strings that contribute to the stable, unique identity of the result. -
withPartialFingerprints
-
getFingerprints
A set of strings each of which individually defines a stable, unique identity for the result. -
setFingerprints
A set of strings each of which individually defines a stable, unique identity for the result. -
withFingerprints
-
getStacks
An array of 'stack' objects relevant to the result. -
setStacks
An array of 'stack' objects relevant to the result. -
withStacks
-
getCodeFlows
An array of 'codeFlow' objects relevant to the result. -
setCodeFlows
An array of 'codeFlow' objects relevant to the result. -
withCodeFlows
-
getGraphs
An array of zero or more unique graph objects associated with the result. -
setGraphs
An array of zero or more unique graph objects associated with the result. -
withGraphs
-
getGraphTraversals
An array of one or more unique 'graphTraversal' objects. -
setGraphTraversals
An array of one or more unique 'graphTraversal' objects. -
withGraphTraversals
-
getRelatedLocations
A set of locations relevant to this result. -
setRelatedLocations
A set of locations relevant to this result. -
withRelatedLocations
-
getSuppressions
A set of suppressions relevant to this result. -
setSuppressions
A set of suppressions relevant to this result. -
withSuppressions
-
getBaselineState
The state of a result relative to a baseline of a previous run. -
setBaselineState
The state of a result relative to a baseline of a previous run. -
withBaselineState
-
getRank
A number representing the priority or importance of the result. -
setRank
A number representing the priority or importance of the result. -
withRank
-
getAttachments
A set of artifacts relevant to the result. -
setAttachments
A set of artifacts relevant to the result. -
withAttachments
-
getHostedViewerUri
An absolute URI at which the result can be viewed. -
setHostedViewerUri
An absolute URI at which the result can be viewed. -
withHostedViewerUri
-
getWorkItemUris
The URIs of the work items associated with this result. -
setWorkItemUris
The URIs of the work items associated with this result. -
withWorkItemUris
-
getProvenance
Contains information about how and when a result was detected. -
setProvenance
Contains information about how and when a result was detected. -
withProvenance
-
getFixes
An array of 'fix' objects, each of which represents a proposed fix to the problem indicated by the result. -
setFixes
An array of 'fix' objects, each of which represents a proposed fix to the problem indicated by the result. -
withFixes
-
getTaxa
An array of references to taxonomy reporting descriptors that are applicable to the result. -
setTaxa
An array of references to taxonomy reporting descriptors that are applicable to the result. -
withTaxa
-
getWebRequest
Describes an HTTP request. -
setWebRequest
Describes an HTTP request. -
withWebRequest
-
getWebResponse
Describes the response to an HTTP request. -
setWebResponse
Describes the response to an HTTP request. -
withWebResponse
-
getProperties
Key/value pairs that provide additional information about the object. -
setProperties
Key/value pairs that provide additional information about the object. -
withProperties
-
toString
-
hashCode
public int hashCode() -
equals
-