Package space.arim.dazzleconf.validator
Class NonEmptyStringValidator
java.lang.Object
space.arim.dazzleconf.validator.NonEmptyStringValidator
- All Implemented Interfaces:
ValueValidator
Value validator which ensures a string is not empty
- Author:
- A248
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
NonEmptyStringValidator
public NonEmptyStringValidator()
-
-
Method Details
-
validate
Description copied from interface:ValueValidatorValidates a value. The value provided is the one after any type conversions. It may be casted to the config method's return type.- Specified by:
validatein interfaceValueValidator- Parameters:
key- the key, used to constructBadValueExceptionvalue- the value- Throws:
BadValueException- if the value is invalid
-