Class ValidIntegerValidator

  • All Implemented Interfaces:
    FieldAction

    public class ValidIntegerValidator
    extends Object
    implements FieldAction
    Author:
    Luca Frosini (ISTI - CNR)
    • Constructor Detail

      • ValidIntegerValidator

        public ValidIntegerValidator()
    • Method Detail

      • validate

        public Serializable validate​(String key,
                                     Serializable value,
                                     Record record)
                              throws InvalidValueException
        Validate (and eventually convert) the value of the property identified by the key.
        Specified by:
        validate in interface FieldAction
        Parameters:
        key - The key of the property
        value - The value to be validated (and eventually converted) of the property
        record - the record the property is attached
        Returns:
        the validated (and eventually converted) value of the property
        Throws:
        InvalidValueException - if the validation or the eventual conversion fails