Class StringCommandOption

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

public class StringCommandOption extends CommandOption
Representation of a string command line option.
  • Constructor Details

    • StringCommandOption

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

    • process

      public static StringCommandOption process(String optionKey, Object jsonObject, List<String> command)
      Processes a string 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.