Package google.registry.tools.params
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 Summary
-
Method Details
-
convert
- Specified by:
convert
in interfacecom.beust.jcommander.IStringConverter<T>
-
validate
- Specified by:
validate
in interfacecom.beust.jcommander.IParameterValidator
- Throws:
com.beust.jcommander.ParameterException
-