Class DefaultCompositeValidator<T>

  • Type Parameters:
    T - the type of the validated object
    All Implemented Interfaces:
    Validator<T>

    public class DefaultCompositeValidator<T>
    extends java.lang.Object
    implements Validator<T>
    Default composite validator is a composite of Validator
    Iterates and executes validate for each Validator
    • Constructor Detail

      • DefaultCompositeValidator

        public DefaultCompositeValidator()
    • Method Detail

      • validate

        public void validate​(T validatee)
        Description copied from interface: Validator
        Method to perform validation on a given object.
        Specified by:
        validate in interface Validator<T>
        Parameters:
        validatee - the inpected object being validated.
      • getValidators

        protected java.util.List<Validator<T>> getValidators()
      • setValidators

        public void setValidators​(java.util.List<Validator<T>> validators)