Class TimeIntervalValidation

    • Constructor Detail

      • TimeIntervalValidation

        public TimeIntervalValidation​(ITimeInterval interval,
                                      boolean acceptLessThen,
                                      boolean acceptEqualTo,
                                      boolean acceptGreaterThan,
                                      ValidationError error)
    • Method Detail

      • validate

        public ValidationError validate​(Object object,
                                        Object property,
                                        Object value)
        Description copied from interface: PropertyValidation
        Validates a property value
        Specified by:
        validate in interface PropertyValidation
        Parameters:
        object - The object
        property - The property name or descriptor
        value - The property value
        Returns:
        An error if there is an error, or null when is valid