public DriverNIF(long nif) { if (!NumberValidator.isValidNIF(nif)) { throw new BusinessRuleValidationException(nif + " invalid: Driver NIF is invalid"); } if (NumberValidator.isNegative(nif)) { throw new BusinessRuleValidationException(nif + " invalid: Driver NIF can't be negative"); } this.nif = nif; }