Class Validator<T>

  • Type Parameters:
    T - the type of value that this validator can validate

    public abstract class Validator<T>
    extends Object
    Validator is responsible for validating the value from the target of a Binding.
    Author:
    Shannon Hickey
    • Constructor Detail

      • Validator

        public Validator()
    • Method Detail

      • validate

        public abstract Validator.Result validate​(T value)
        Validates a value; returns null for a valid value, and a Result object describing the problem for an invalid value.
        Parameters:
        value - the value to validate, may be null
        Returns:
        null for a valid value or a Result describing the problem for an invalid value