Class ListStringCommandOption

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

public class ListStringCommandOption extends CommandOption
Representation of a command line option containing a list of strings.
  • Constructor Details

    • ListStringCommandOption

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

    • process

      public static ListStringCommandOption process(String optionKey, Object jsonObject, List<String> command)
      Processes a command line option containing a list of strings.
      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.