Class RFCreditorReferenceValidator

java.lang.Object
org.apache.commons.validator.routines.RFCreditorReferenceValidator

public class RFCreditorReferenceValidator extends Object
RF Creditor Reference Validator.

The Structured Creditor Reference is an international business standard based on ISO 11649. Using Creditor Reference, a company can automatically match its remittance information to its A/R. The Creditor Reference is an alphanumeric string, up to 25 characters long, prefixed with the letters "RF" and two check digits.

For further information see ISO-11649 or wikipedia.

  • Constructor Details

    • RFCreditorReferenceValidator

      public RFCreditorReferenceValidator()
  • Method Details

    • getInstance

      public static RFCreditorReferenceValidator getInstance()
      Return a singleton instance of the validator using the default formats
      Returns:
      A singleton instance of the validator
    • isValid

      public boolean isValid(String id)
      Validate a RF Creditor Reference
      Parameters:
      id - The value validation is being performed on
      Returns:
      true if the value is valid