Class BooleanCommandOption

java.lang.Object
org.lockss.laaws.crawler.impl.pluggable.command.CommandOption
org.lockss.laaws.crawler.impl.pluggable.command.BooleanCommandOption

public class BooleanCommandOption extends CommandOption
Representation of a boolean command line option.
  • Constructor Details

    • BooleanCommandOption

      public BooleanCommandOption(String longKey)
      Constructor.
      Parameters:
      longKey - A String with the long key of the boolean command line option.
  • Method Details

    • process

      public static BooleanCommandOption process(String optionKey, Object jsonObject, List<String> command)
      Processes a boolean command line option.
      Parameters:
      optionKey - A String with the key of the option.
      jsonObject - An object with the JSON object that represents the value of the command line option.
      command - A List where to add this command line option, if appropriate.
      Returns:
      a BooleanCommandOption with this object.