Package google.registry.tools.params
Class KeyValueMapParameter.StringToRegistrarRoleMap
java.lang.Object
google.registry.tools.params.ParameterConverterValidator<com.google.common.collect.ImmutableMap<String,RegistrarRole>>
google.registry.tools.params.KeyValueMapParameter<String,RegistrarRole>
google.registry.tools.params.KeyValueMapParameter.StringToRegistrarRoleMap
- All Implemented Interfaces:
com.beust.jcommander.IParameterValidator
,com.beust.jcommander.IStringConverter<com.google.common.collect.ImmutableMap<String,
RegistrarRole>>
- Enclosing class:
KeyValueMapParameter<K,
V>
public static class KeyValueMapParameter.StringToRegistrarRoleMap
extends KeyValueMapParameter<String,RegistrarRole>
Combined converter/validator class for maps of registrar names to registrar roles.
-
Nested Class Summary
Nested classes/interfaces inherited from class google.registry.tools.params.KeyValueMapParameter
KeyValueMapParameter.CurrencyUnitToStringMap, KeyValueMapParameter.StringToIntegerMap, KeyValueMapParameter.StringToRegistrarRoleMap, KeyValueMapParameter.StringToStringMap
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
Override to define how to parse rawKey into an object of type K.protected RegistrarRole
parseValue
(String rawValue) Override to define how to parse rawValue into an object of type V.Methods inherited from class google.registry.tools.params.KeyValueMapParameter
convert, processMap
Methods inherited from class google.registry.tools.params.ParameterConverterValidator
validate
-
Constructor Details
-
StringToRegistrarRoleMap
public StringToRegistrarRoleMap()
-
-
Method Details
-
parseKey
Description copied from class:KeyValueMapParameter
Override to define how to parse rawKey into an object of type K.- Specified by:
parseKey
in classKeyValueMapParameter<String,
RegistrarRole>
-
parseValue
Description copied from class:KeyValueMapParameter
Override to define how to parse rawValue into an object of type V.- Specified by:
parseValue
in classKeyValueMapParameter<String,
RegistrarRole>
-