/** * {@inheritDoc} * * @throws SuperCsvCellProcessorException * if value is null * @throws SuperCsvConstraintViolationException * if the length of value isn't one of the required lengths */ public Object execute(final Object value, final CsvContext context) { validateInputNotNull(value, context); final String stringValue = value.toString(); final int length = stringValue.length(); if( !requiredLengths.contains(length) ) { throw new SuperCsvConstraintViolationException(String.format("the length (%d) of value '%s' not any of the required lengths", length, stringValue), context, this); } return next.execute(value, context); }