Class SarifLog.Result

  • Enclosing class:
    SarifLog

    public static class SarifLog.Result
    extends Object
    A result produced by an analysis tool.
    • Method Detail

      • 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)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object