java.lang.Object
be.kuleuven.cs.distrinet.sparta.cli.cmd.export.ExportCQR
All Implemented Interfaces:
Exporter

public class ExportCQR extends Object implements Exporter
Support for exporting a Code Quality Report via the command line.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Create a new ExportCQR class.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.commons.cli.Option[]
    Get the options that have to be processed for determining if this command should run.
    boolean
    process(org.apache.commons.cli.CommandLine cmd, Collection<Threat> results)
    Process the parsed options and run the export if needed on the provided collection of threats.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ExportCQR

      public ExportCQR()
      Create a new ExportCQR class.
  • Method Details

    • getOptions

      public org.apache.commons.cli.Option[] getOptions()
      Description copied from interface: Exporter
      Get the options that have to be processed for determining if this command should run.
      Specified by:
      getOptions in interface Exporter
      Returns:
      the array of options this command relies upon.
    • process

      public boolean process(org.apache.commons.cli.CommandLine cmd, Collection<Threat> results)
      Description copied from interface: Exporter
      Process the parsed options and run the export if needed on the provided collection of threats.
      Specified by:
      process in interface Exporter
      Parameters:
      cmd - the processed command line options.
      results - the collection of threats to export
      Returns:
      true if the export succeeded or was not requested; false if it failed.