Class ParameterConverterValidator<T>

java.lang.Object
google.registry.tools.params.ParameterConverterValidator<T>
All Implemented Interfaces:
com.beust.jcommander.IParameterValidator, com.beust.jcommander.IStringConverter<T>
Direct Known Subclasses:
DateParameter, DateTimeParameter, DurationParameter, EnumParameter, HostAndPortParameter, InternetDomainNameParameter, IntervalParameter, KeyValueMapParameter, LocalDateParameter, LoggingLevelParameter, LongParameter, MoneyParameter, NameserversParameter, OptionalParameterConverterValidator, PathParameter, PhoneNumberParameter, StringListParameter, StringParameter, YearMonthParameter

public abstract class ParameterConverterValidator<T> extends Object implements com.beust.jcommander.IStringConverter<T>, com.beust.jcommander.IParameterValidator
Base class for parameters that do both conversion and validation (reduces boilerplate).
  • Method Details

    • convert

      public abstract T convert(String arg0)
      Specified by:
      convert in interface com.beust.jcommander.IStringConverter<T>
    • validate

      public void validate(String name, String value) throws com.beust.jcommander.ParameterException
      Specified by:
      validate in interface com.beust.jcommander.IParameterValidator
      Throws:
      com.beust.jcommander.ParameterException