public class Result extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Result.BaselineState
The state of a result relative to a baseline of a previous run.
|
static class |
Result.Kind
A value that categorizes results by evaluation state.
|
static class |
Result.Level
A value specifying the severity level of the result.
|
| Constructor and Description |
|---|
Result() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
ArtifactLocation |
getAnalysisTarget()
Specifies the location of an artifact.
|
Set<Attachment> |
getAttachments()
A set of artifacts relevant to the result.
|
Result.BaselineState |
getBaselineState()
The state of a result relative to a baseline of a previous run.
|
List<CodeFlow> |
getCodeFlows()
An array of 'codeFlow' objects relevant to the result.
|
String |
getCorrelationGuid()
A stable, unique identifier for the equivalence class of logically identical results to which this result belongs, in the form of a GUID.
|
Fingerprints |
getFingerprints()
A set of strings each of which individually defines a stable, unique identity for the result.
|
Set<Fix> |
getFixes()
An array of 'fix' objects, each of which represents a proposed fix to the problem indicated by the result.
|
Set<Graph> |
getGraphs()
An array of zero or more unique graph objects associated with the result.
|
Set<GraphTraversal> |
getGraphTraversals()
An array of one or more unique 'graphTraversal' objects.
|
String |
getGuid()
A stable, unique identifer for the result in the form of a GUID.
|
URI |
getHostedViewerUri()
An absolute URI at which the result can be viewed.
|
Result.Kind |
getKind()
A value that categorizes results by evaluation state.
|
Result.Level |
getLevel()
A value specifying the severity level of the result.
|
List<Location> |
getLocations()
The set of locations where the result was detected.
|
Message |
getMessage()
Encapsulates a message intended to be read by the end user.
|
Integer |
getOccurrenceCount()
A positive integer specifying the number of times this logically unique result was observed in this run.
|
PartialFingerprints |
getPartialFingerprints()
A set of strings that contribute to the stable, unique identity of the result.
|
PropertyBag |
getProperties()
Key/value pairs that provide additional information about the object.
|
ResultProvenance |
getProvenance()
Contains information about how and when a result was detected.
|
Double |
getRank()
A number representing the priority or importance of the result.
|
Set<Location> |
getRelatedLocations()
A set of locations relevant to this result.
|
ReportingDescriptorReference |
getRule()
Information about how to locate a relevant reporting descriptor.
|
String |
getRuleId()
The stable, unique identifier of the rule, if any, to which this result is relevant.
|
Integer |
getRuleIndex()
The index within the tool component rules array of the rule object associated with this result.
|
Set<Stack> |
getStacks()
An array of 'stack' objects relevant to the result.
|
Set<Suppression> |
getSuppressions()
A set of suppressions relevant to this result.
|
Set<ReportingDescriptorReference> |
getTaxa()
An array of references to taxonomy reporting descriptors that are applicable to the result.
|
WebRequest |
getWebRequest()
Describes an HTTP request.
|
WebResponse |
getWebResponse()
Describes the response to an HTTP request.
|
Set<URI> |
getWorkItemUris()
The URIs of the work items associated with this result.
|
int |
hashCode() |
void |
setAnalysisTarget(ArtifactLocation analysisTarget)
Specifies the location of an artifact.
|
void |
setAttachments(Set<Attachment> attachments)
A set of artifacts relevant to the result.
|
void |
setBaselineState(Result.BaselineState baselineState)
The state of a result relative to a baseline of a previous run.
|
void |
setCodeFlows(List<CodeFlow> codeFlows)
An array of 'codeFlow' objects relevant to the result.
|
void |
setCorrelationGuid(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.
|
void |
setFingerprints(Fingerprints fingerprints)
A set of strings each of which individually defines a stable, unique identity for the result.
|
void |
setFixes(Set<Fix> fixes)
An array of 'fix' objects, each of which represents a proposed fix to the problem indicated by the result.
|
void |
setGraphs(Set<Graph> graphs)
An array of zero or more unique graph objects associated with the result.
|
void |
setGraphTraversals(Set<GraphTraversal> graphTraversals)
An array of one or more unique 'graphTraversal' objects.
|
void |
setGuid(String guid)
A stable, unique identifer for the result in the form of a GUID.
|
void |
setHostedViewerUri(URI hostedViewerUri)
An absolute URI at which the result can be viewed.
|
void |
setKind(Result.Kind kind)
A value that categorizes results by evaluation state.
|
void |
setLevel(Result.Level level)
A value specifying the severity level of the result.
|
void |
setLocations(List<Location> locations)
The set of locations where the result was detected.
|
void |
setMessage(Message message)
Encapsulates a message intended to be read by the end user.
|
void |
setOccurrenceCount(Integer occurrenceCount)
A positive integer specifying the number of times this logically unique result was observed in this run.
|
void |
setPartialFingerprints(PartialFingerprints partialFingerprints)
A set of strings that contribute to the stable, unique identity of the result.
|
void |
setProperties(PropertyBag properties)
Key/value pairs that provide additional information about the object.
|
void |
setProvenance(ResultProvenance provenance)
Contains information about how and when a result was detected.
|
void |
setRank(Double rank)
A number representing the priority or importance of the result.
|
void |
setRelatedLocations(Set<Location> relatedLocations)
A set of locations relevant to this result.
|
void |
setRule(ReportingDescriptorReference rule)
Information about how to locate a relevant reporting descriptor.
|
void |
setRuleId(String ruleId)
The stable, unique identifier of the rule, if any, to which this result is relevant.
|
void |
setRuleIndex(Integer ruleIndex)
The index within the tool component rules array of the rule object associated with this result.
|
void |
setStacks(Set<Stack> stacks)
An array of 'stack' objects relevant to the result.
|
void |
setSuppressions(Set<Suppression> suppressions)
A set of suppressions relevant to this result.
|
void |
setTaxa(Set<ReportingDescriptorReference> taxa)
An array of references to taxonomy reporting descriptors that are applicable to the result.
|
void |
setWebRequest(WebRequest webRequest)
Describes an HTTP request.
|
void |
setWebResponse(WebResponse webResponse)
Describes the response to an HTTP request.
|
void |
setWorkItemUris(Set<URI> workItemUris)
The URIs of the work items associated with this result.
|
String |
toString() |
Result |
withAnalysisTarget(ArtifactLocation analysisTarget) |
Result |
withAttachments(Set<Attachment> attachments) |
Result |
withBaselineState(Result.BaselineState baselineState) |
Result |
withCodeFlows(List<CodeFlow> codeFlows) |
Result |
withCorrelationGuid(String correlationGuid) |
Result |
withFingerprints(Fingerprints fingerprints) |
Result |
withFixes(Set<Fix> fixes) |
Result |
withGraphs(Set<Graph> graphs) |
Result |
withGraphTraversals(Set<GraphTraversal> graphTraversals) |
Result |
withGuid(String guid) |
Result |
withHostedViewerUri(URI hostedViewerUri) |
Result |
withKind(Result.Kind kind) |
Result |
withLevel(Result.Level level) |
Result |
withLocations(List<Location> locations) |
Result |
withMessage(Message message) |
Result |
withOccurrenceCount(Integer occurrenceCount) |
Result |
withPartialFingerprints(PartialFingerprints partialFingerprints) |
Result |
withProperties(PropertyBag properties) |
Result |
withProvenance(ResultProvenance provenance) |
Result |
withRank(Double rank) |
Result |
withRelatedLocations(Set<Location> relatedLocations) |
Result |
withRule(ReportingDescriptorReference rule) |
Result |
withRuleId(String ruleId) |
Result |
withRuleIndex(Integer ruleIndex) |
Result |
withStacks(Set<Stack> stacks) |
Result |
withSuppressions(Set<Suppression> suppressions) |
Result |
withTaxa(Set<ReportingDescriptorReference> taxa) |
Result |
withWebRequest(WebRequest webRequest) |
Result |
withWebResponse(WebResponse webResponse) |
Result |
withWorkItemUris(Set<URI> workItemUris) |
public String getRuleId()
public void setRuleId(String ruleId)
public Integer getRuleIndex()
public void setRuleIndex(Integer ruleIndex)
public ReportingDescriptorReference getRule()
public void setRule(ReportingDescriptorReference rule)
public Result withRule(ReportingDescriptorReference rule)
public Result.Kind getKind()
public void setKind(Result.Kind kind)
public Result withKind(Result.Kind kind)
public Result.Level getLevel()
public void setLevel(Result.Level level)
public Result withLevel(Result.Level level)
public Message getMessage()
public void setMessage(Message message)
public ArtifactLocation getAnalysisTarget()
public void setAnalysisTarget(ArtifactLocation analysisTarget)
public Result withAnalysisTarget(ArtifactLocation analysisTarget)
public List<Location> getLocations()
public void setLocations(List<Location> locations)
public String getGuid()
public void setGuid(String guid)
public String getCorrelationGuid()
public void setCorrelationGuid(String correlationGuid)
public Integer getOccurrenceCount()
public void setOccurrenceCount(Integer occurrenceCount)
public PartialFingerprints getPartialFingerprints()
public void setPartialFingerprints(PartialFingerprints partialFingerprints)
public Result withPartialFingerprints(PartialFingerprints partialFingerprints)
public Fingerprints getFingerprints()
public void setFingerprints(Fingerprints fingerprints)
public Result withFingerprints(Fingerprints fingerprints)
public void setStacks(Set<Stack> stacks)
public List<CodeFlow> getCodeFlows()
public void setCodeFlows(List<CodeFlow> codeFlows)
public Set<Graph> getGraphs()
public void setGraphs(Set<Graph> graphs)
public Set<GraphTraversal> getGraphTraversals()
public void setGraphTraversals(Set<GraphTraversal> graphTraversals)
public Result withGraphTraversals(Set<GraphTraversal> graphTraversals)
public Set<Location> getRelatedLocations()
public void setRelatedLocations(Set<Location> relatedLocations)
public Set<Suppression> getSuppressions()
public void setSuppressions(Set<Suppression> suppressions)
public Result withSuppressions(Set<Suppression> suppressions)
public Result.BaselineState getBaselineState()
public void setBaselineState(Result.BaselineState baselineState)
public Result withBaselineState(Result.BaselineState baselineState)
public Double getRank()
public void setRank(Double rank)
public Set<Attachment> getAttachments()
public void setAttachments(Set<Attachment> attachments)
public Result withAttachments(Set<Attachment> attachments)
public URI getHostedViewerUri()
public void setHostedViewerUri(URI hostedViewerUri)
public Set<URI> getWorkItemUris()
public void setWorkItemUris(Set<URI> workItemUris)
public ResultProvenance getProvenance()
public void setProvenance(ResultProvenance provenance)
public Result withProvenance(ResultProvenance provenance)
public Set<Fix> getFixes()
public void setFixes(Set<Fix> fixes)
public Set<ReportingDescriptorReference> getTaxa()
public void setTaxa(Set<ReportingDescriptorReference> taxa)
public Result withTaxa(Set<ReportingDescriptorReference> taxa)
public WebRequest getWebRequest()
public void setWebRequest(WebRequest webRequest)
public Result withWebRequest(WebRequest webRequest)
public WebResponse getWebResponse()
public void setWebResponse(WebResponse webResponse)
public Result withWebResponse(WebResponse webResponse)
public PropertyBag getProperties()
public void setProperties(PropertyBag properties)
public Result withProperties(PropertyBag properties)
Copyright © 2020 Contrast Security. All rights reserved.