java.lang.Object
com.github.sttk.cliargs.validators.ShortValidator
- All Implemented Interfaces:
Validator
Is the validator class which provides the method to validate an option argument string as a
Short
.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ShortValidator
public ShortValidator()The default constructor.
-
-
Method Details
-
validate
Validates an option argument string whether it is valid format of the specified type, etc.- Specified by:
validate
in interfaceValidator
- Parameters:
storeKey
- The store key used to store inCmd
instance.name
- The option name.arg
- The option argument string in command line arguments.- Throws:
OptionArgIsInvalid
- If the option argument is invalid.
-