Class Validators


  • public class Validators
    extends Object
    Provides a few handy configuration property validators out-of-the-box.
    Since:
    1.17
    • Method Detail

      • charsetValidator

        public static ValidationCallback charsetValidator()
        Validates that the property holds a valid Charset name.
        Returns:
        A charset validator
      • integerRangeValidator

        public static ValidationCallback integerRangeValidator​(int lowerBound,
                                                               int upperBound)
        Validates that the property holds an integer within the given lower and upper bounds.
        Parameters:
        lowerBound -
        upperBound -
        Returns:
        An integer range validator
      • booleanValidator

        public static ValidationCallback booleanValidator()
        Validates that the property holds a boolean value, i.e. either "true" or "false".
        Returns:
        A boolean validator