Package google.registry.tools.params
Class TransitionListParameter<V>
java.lang.Object
google.registry.tools.params.ParameterConverterValidator<com.google.common.collect.ImmutableMap<org.joda.time.DateTime,V>>
google.registry.tools.params.KeyValueMapParameter<org.joda.time.DateTime,V>
google.registry.tools.params.TransitionListParameter<V>
- All Implemented Interfaces:
com.beust.jcommander.IParameterValidator
,com.beust.jcommander.IStringConverter<com.google.common.collect.ImmutableMap<org.joda.time.DateTime,
V>>
- Direct Known Subclasses:
TransitionListParameter.BillingCostTransitions
,TransitionListParameter.FeatureStatusTransitions
,TransitionListParameter.TldStateTransitions
,TransitionListParameter.TokenStatusTransitions
public abstract class TransitionListParameter<V>
extends KeyValueMapParameter<org.joda.time.DateTime,V>
Combined converter and validator class for transition list JCommander argument strings.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Converter-validator for billing cost transitions.static class
Converter-validator for feature status transitions.static class
Converter-validator for TLD state transitions.static class
Converter-validator for token status transitions.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 final org.joda.time.DateTime
Override to define how to parse rawKey into an object of type K.protected final com.google.common.collect.ImmutableSortedMap
<org.joda.time.DateTime, V> processMap
(com.google.common.collect.ImmutableMap<org.joda.time.DateTime, V> map) Override to perform any post-processing on the map.Methods inherited from class google.registry.tools.params.KeyValueMapParameter
convert, parseValue
Methods inherited from class google.registry.tools.params.ParameterConverterValidator
validate
-
Constructor Details
-
TransitionListParameter
public TransitionListParameter()
-
-
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<org.joda.time.DateTime,
V>
-
processMap
protected final com.google.common.collect.ImmutableSortedMap<org.joda.time.DateTime,V> processMap(com.google.common.collect.ImmutableMap<org.joda.time.DateTime, V> map) Description copied from class:KeyValueMapParameter
Override to perform any post-processing on the map.- Overrides:
processMap
in classKeyValueMapParameter<org.joda.time.DateTime,
V>
-