Class LoggingLevelParameter

  • All Implemented Interfaces:
    com.beust.jcommander.IParameterValidator, com.beust.jcommander.IStringConverter<java.util.logging.Level>

    public final class LoggingLevelParameter
    extends ParameterConverterValidator<java.util.logging.Level>
    Java logging level CLI parameter converter/validator.

    If Level were an enum then this wouldn't be needed since JCommander has built-in conversion support for enums, but Level is actually just a regular class with some static instances.

    • Constructor Detail

      • LoggingLevelParameter

        public LoggingLevelParameter()
    • Method Detail

      • convert

        public java.util.logging.Level convert​(java.lang.String value)
        Specified by:
        convert in interface com.beust.jcommander.IStringConverter<java.util.logging.Level>
        Specified by:
        convert in class ParameterConverterValidator<java.util.logging.Level>