Class Sarif

java.lang.Object
org.schemastore.json.sarif.x210.Sarif
All Implemented Interfaces:
gov.nist.secauto.metaschema.core.model.IBoundObject

@MetaschemaAssembly(formalName="Static Analysis Results Interchange Format", description="A standard format for the output of static analysis tools.", name="sarif", moduleClass=SarifModule.class, rootName="sarif", remarks="Note, Metaschema does not support an anonymous top-level assembly without a key name in JSON and YAML, which is required for SARIF.") public class Sarif extends Object implements gov.nist.secauto.metaschema.core.model.IBoundObject
A standard format for the output of static analysis tools.
  • Constructor Details

    • Sarif

      public Sarif()
    • Sarif

      public Sarif(gov.nist.secauto.metaschema.core.model.IMetaschemaData data)
  • Method Details

    • getMetaschemaData

      public gov.nist.secauto.metaschema.core.model.IMetaschemaData getMetaschemaData()
      Specified by:
      getMetaschemaData in interface gov.nist.secauto.metaschema.core.model.IBoundObject
    • getVersion

      public String getVersion()
    • setVersion

      public void setVersion(String value)
    • getRuns

      public List<Run> getRuns()
    • setRuns

      public void setRuns(List<Run> value)
    • addRun

      public boolean addRun(Run item)
      Add a new Run item to the underlying collection.
      Parameters:
      item - the item to add
      Returns:
      true
    • removeRun

      public boolean removeRun(Run item)
      Remove the first matching Run item from the underlying collection.
      Parameters:
      item - the item to remove
      Returns:
      true if the item was removed or false otherwise
    • toString

      public String toString()
      Overrides:
      toString in class Object