Class StringNotEmptyValidator

java.lang.Object
com.github.joschi.jadconfig.validators.StringNotEmptyValidator
All Implemented Interfaces:
Validator<String>

public class StringNotEmptyValidator extends Object implements Validator<String>
Validator class which checks if the named parameter is a non-empty String.
Author:
jschalanda
  • Constructor Details

    • StringNotEmptyValidator

      public StringNotEmptyValidator()
  • Method Details

    • validate

      public void validate(String name, String value) throws ValidationException
      Validates if the value value the of provided configuration parameter name is a non-empty String
      Specified by:
      validate in interface Validator<String>
      Parameters:
      name - The name of the configuration parameter
      value - The value of the configuration validator
      Throws:
      ValidationException - If the value value configuration parameter name can't be parsed as a String or is empty.