Class SarifLog.Result
- java.lang.Object
-
- net.sourceforge.pmd.renderers.internal.sarif.SarifLog.Result
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSarifLog.Result.ResultBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SarifLog.Result.ResultBuilderbuilder()protected booleancanEqual(Object other)booleanequals(Object o)List<SarifLog.Location>getLocations()The set of locations where the result was detected.SarifLog.MessagegetMessage()A message that describes the result.SarifLog.PropertyBaggetProperties()Key/value pairs that provide additional information about the address.StringgetRuleId()The stable, unique identifier of the rule, if any, to which this result is relevant.IntegergetRuleIndex()The index link the rule, if any, to which this result is relevant.inthashCode()SarifLog.ResultsetLocations(List<SarifLog.Location> locations)The set of locations where the result was detected.SarifLog.ResultsetMessage(SarifLog.Message message)A message that describes the result.SarifLog.ResultsetProperties(SarifLog.PropertyBag properties)Key/value pairs that provide additional information about the address.SarifLog.ResultsetRuleId(String ruleId)The stable, unique identifier of the rule, if any, to which this result is relevant.SarifLog.ResultsetRuleIndex(Integer ruleIndex)The index link the rule, if any, to which this result is relevant.StringtoString()
-
-
-
Method Detail
-
builder
public static SarifLog.Result.ResultBuilder builder()
-
getRuleId
public String getRuleId()
The stable, unique identifier of the rule, if any, to which this result is relevant.
-
getRuleIndex
public Integer getRuleIndex()
The index link the rule, if any, to which this result is relevant.
-
getMessage
public SarifLog.Message getMessage()
A message that describes the result. The first sentence of the message only will be displayed when visible space is limited.
-
getLocations
public List<SarifLog.Location> 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.
-
getProperties
public SarifLog.PropertyBag getProperties()
Key/value pairs that provide additional information about the address.
-
setRuleId
public SarifLog.Result setRuleId(String ruleId)
The stable, unique identifier of the rule, if any, to which this result is relevant.- Returns:
this.
-
setRuleIndex
public SarifLog.Result setRuleIndex(Integer ruleIndex)
The index link the rule, if any, to which this result is relevant.- Returns:
this.
-
setMessage
public SarifLog.Result setMessage(SarifLog.Message message)
A message that describes the result. The first sentence of the message only will be displayed when visible space is limited.- Returns:
this.
-
setLocations
public SarifLog.Result setLocations(List<SarifLog.Location> locations)
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.- Returns:
this.
-
setProperties
public SarifLog.Result setProperties(SarifLog.PropertyBag properties)
Key/value pairs that provide additional information about the address.- Returns:
this.
-
canEqual
protected boolean canEqual(Object other)
-
-