Class SarifLog.ReportingDescriptor

  • Enclosing class:
    SarifLog

    public static class SarifLog.ReportingDescriptor
    extends Object
    Metadata that describes a specific report produced by the tool, as part of the analysis it provides or its runtime reporting.
    • Method Detail

      • getId

        public String getId()
        A stable, opaque identifier for the report.
      • getName

        public String getName()
        A report identifier that is understandable to an end user.
      • getShortDescription

        public SarifLog.MultiformatMessage getShortDescription()
        A concise description of the report. Should be a single sentence that is understandable when visible space is limited to a single line of text.
      • getFullDescription

        public SarifLog.MultiformatMessage getFullDescription()
        A description of the report. Should, as far as possible, provide details sufficient to enable resolution of any problem indicated by the result.
      • getMessageStrings

        public SarifLog.MultiformatMessage getMessageStrings()
        A set of name/value pairs with arbitrary names. Each value is a multiformatMessageString object, which holds message strings in plain text and (optionally) Markdown format. The strings can include placeholders, which can be used to construct a message in combination with an arbitrary number of additional string arguments.
      • getHelpUri

        public String getHelpUri()
        A URI where the primary documentation for the report can be found.
      • getHelp

        public SarifLog.MultiformatMessage getHelp()
        Provides the primary documentation for the report, useful when there is no online documentation.
      • getProperties

        public SarifLog.PropertyBag getProperties()
        Key/value pairs that provide additional information about the report.
      • setShortDescription

        public SarifLog.ReportingDescriptor setShortDescription​(SarifLog.MultiformatMessage shortDescription)
        A concise description of the report. Should be a single sentence that is understandable when visible space is limited to a single line of text.
        Returns:
        this.
      • setFullDescription

        public SarifLog.ReportingDescriptor setFullDescription​(SarifLog.MultiformatMessage fullDescription)
        A description of the report. Should, as far as possible, provide details sufficient to enable resolution of any problem indicated by the result.
        Returns:
        this.
      • setMessageStrings

        public SarifLog.ReportingDescriptor setMessageStrings​(SarifLog.MultiformatMessage messageStrings)
        A set of name/value pairs with arbitrary names. Each value is a multiformatMessageString object, which holds message strings in plain text and (optionally) Markdown format. The strings can include placeholders, which can be used to construct a message in combination with an arbitrary number of additional string arguments.
        Returns:
        this.
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object