Package google.registry.tools.params
Class LoggingLevelParameter
java.lang.Object
google.registry.tools.params.ParameterConverterValidator<Level>
google.registry.tools.params.LoggingLevelParameter
- All Implemented Interfaces:
com.beust.jcommander.IParameterValidator
,com.beust.jcommander.IStringConverter<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 Summary
-
Method Summary
Methods inherited from class google.registry.tools.params.ParameterConverterValidator
validate
-
Constructor Details
-
LoggingLevelParameter
public LoggingLevelParameter()
-
-
Method Details
-
convert
- Specified by:
convert
in interfacecom.beust.jcommander.IStringConverter<Level>
- Specified by:
convert
in classParameterConverterValidator<Level>
-