Class ExportCSV
java.lang.Object
be.kuleuven.cs.distrinet.sparta.cli.cmd.export.ExportCSV
- All Implemented Interfaces:
Exporter
Support for exporting to CSV via the command line.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.commons.cli.Option[]Get the options that have to be processed for determining if this command should run.voidprocess(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.
-
Constructor Details
-
ExportCSV
public ExportCSV()Create a new ExportCSV class.
-
-
Method Details
-
getOptions
public org.apache.commons.cli.Option[] getOptions()Description copied from interface:ExporterGet the options that have to be processed for determining if this command should run.- Specified by:
getOptionsin interfaceExporter- Returns:
- the array of options this command relies upon.
-
process
Description copied from interface:ExporterProcess the parsed options and run the export if needed on the provided collection of threats.
-