boon/src/main/java/org/boon/validation/validators/LengthValidator.java
public ValidatorMessageHolder validate( Object fieldValue, String fieldLabel ) {
        ValidatorMessage validatorMessage = new ValidatorMessage();
        if ( fieldValue == null ) {
            return validatorMessage;
        }

        int len = Boon.len( fieldValue );

        if ( !( len >= min && len <= max ) ) {
            populateMessage( validatorMessage, fieldLabel, min, max );
        }


        return validatorMessage;

    }
public ValidatorMessageHolder validate( Object fieldValue, String fieldLabel ) {
        ValidatorMessage validatorMessage = new ValidatorMessage();
        if ( fieldValue == null ) {
            return validatorMessage;
        }

        int len = Boon.len( fieldValue );

        if ( !( len >= min && len <= max ) ) {
            populateMessage( validatorMessage, fieldLabel, min, max );
        }


        return validatorMessage;

    }
Perform the actual validation.

@param fieldValue the value to validate
@param fieldLabel the logical name of the value used for generating error messages