java.lang.Object
org.lockss.laaws.crawler.impl.pluggable.command.CommandOption
Direct Known Subclasses:
BooleanCommandOption, FileCommandOption, ListStringCommandOption, StringCommandOption

public class CommandOption extends Object
Base class for all command line options
  • Constructor Details

    • CommandOption

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

    • getLongKey

      public String getLongKey()
      Provides the long key of the command line option.
      Returns:
      a String with the long key of the command line option.
    • getValue

      public String getValue()
      Provides the value of the command line option.
      Returns:
      a String with the value of the command line option.
    • setValue

      public String setValue(String value)
      Saves the value of the command line option.
      Parameters:
      value - A String with the value of the command line option.
      Returns:
      a String with the value of the command line option.