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

public class ExportXLSX extends Object implements Exporter
Export for xlsx export via the command line.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • 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

    • ExportXLSX

      public ExportXLSX()
  • 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.