Enum Class ValidatorCLI.Option

java.lang.Object
java.lang.Enum<ValidatorCLI.Option>
org.openstreetmap.josm.data.validation.ValidatorCLI.Option
All Implemented Interfaces:
Serializable, Comparable<ValidatorCLI.Option>, Constable
Enclosing class:
ValidatorCLI

private static enum ValidatorCLI.Option extends Enum<ValidatorCLI.Option>
  • Enum Constant Details

  • Field Details

  • Constructor Details

  • Method Details

    • values

      public static ValidatorCLI.Option[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ValidatorCLI.Option valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getName

      public String getName()
      Replies the option name
      Returns:
      The option name, in lowercase
    • getOptionCount

      Get the number of times this option should be seen
      Returns:
      The option count
    • getShortOption

      public char getShortOption()
      Replies the short option (single letter) associated with this option.
      Returns:
      the short option or '*' if there is no short option
    • requiresArgument

      public boolean requiresArgument()
      Determines if this option requires an argument.
      Returns:
      true if this option requires an argument, false otherwise